Function at 0x40b0b0
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov eax, dword [0x433834]
sub esp, 0xd64
test eax, eax
push ebx
push ebp
push edi
jne 0x40b75a
mov eax, dword [0x433828]
test eax, eax
jne 0x40b75a
push 0x104
lea eax, [esp + 0x230]
push eax
push 0
mov dword [0x433828], 1
mov byte [esp + 0x238], 0
mov byte [esp + 0x134], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x330]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x330]
push ecx
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
je 0x40b133
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x104
lea eax, [esp + 0x360]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.0040a2c0
mov dl, 0x2e
lea ecx, [esp + 0x128]
call fcn.0040a210
test eax, eax
je 0x40b170
mov dl, 0x2e
lea ecx, [esp + 0x128]
call fcn.0040a210
mov byte [eax], 0
mov ebp, dword [esp + 0xd74]
push pe_nt_image_headers32
lea edx, [esp + 0x2c]
push edx
push ebp
mov byte [esp + 0x34], 0
call fcn.0040bc80
mov al, byte [esp + 0x28]
test al, al
jne 0x40b1b7
mov eax, ebp
push ebp
and eax, 0xffff
push eax
xor ecx, ecx
call fcn.0040af60
push eax
lea ecx, [esp + 0x34]
push pe_nt_image_headers32
push ecx
call fcn.0040a6b0
add esp, 0x14
mov ecx, dword [esp + 0xd78]
test ecx, ecx
mov edi, ecx
mov dword [esp + 0x10], edi
je 0x40b202
cmp byte [ecx], 0
je 0x40b202
mov ebx, dword [esp + 0xd7c]
cmp ebx, 0xfffffffe
je 0x40b1de
cmp ebx, 0xfffffffd
jne 0x40b209
push pe_nt_image_headers32
lea edx, [esp + 0xc74]
call fcn.0040b7e0
test eax, eax
je 0x40b209
lea edx, [esp + 0xc70]
mov dword [esp + 0x10], edx
mov edi, edx
jmp 0x40b209
mov ebx, dword [esp + 0xd7c]
test edi, edi
push esi
lea esi, [esp + 0x474]
je 0x40b22f
push 0x800
push edi
lea eax, [esp + 0x47c]
push eax
call fcn.0040a2c0
lea esi, [esp + eax + 0x474]
test ebx, ebx
jle 0x40b254
push ebx
lea ecx, [esp + 0xc78]
push str.__u_
sub ecx, esi
push ecx
push esi
call fcn.0040a6b0
add esp, 0x10
push esi
call fcn.0040a460
add esi, eax
mov edx, ebp
and edx, 0xffff
push edx
lea eax, [esp + 0xc78]
push str._:_error__u:
sub eax, esi
push eax
push esi
call fcn.0040a6b0
add esp, 0x10
push esi
call fcn.0040a460
add esi, eax
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call fcn.0040a2c0
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 1
call fcn.0040af60
push eax
lea edx, [esp + 0x47c]
push 0x800
push edx
call fcn.0040a6b0
add esp, 0x10
lea eax, [esp + 0x474]
push eax
call fcn.0040a460
lea ecx, [esp + 0x230]
push ecx
mov ecx, 2
lea esi, [esp + eax + 0x478]
call fcn.0040af60
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.0040a6b0
add esp, 0x10
push esi
call fcn.0040a460
add esi, eax
test edi, edi
je 0x40b3e1
cmp byte [edi], 0
je 0x40b3e1
lea eax, [ebx + 5]
cmp eax, 4
ja case.default.0x40b324
jmp dword [eax*4 + 0x40b768]
push edi
mov ecx, 4
call fcn.0040af60
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.0040a6b0
add esp, 0x10
jmp 0x40b3d9
mov ecx, 5
jmp 0x40b39d
push edi
mov ecx, 6
call fcn.0040af60
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.0040a6b0
add esp, 0x10
jmp 0x40b3d9
push edi
mov ecx, 0xb
call fcn.0040af60
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.0040a6b0
add esp, 0x10
jmp 0x40b3d9
mov ecx, 0xe
push edi
call fcn.0040af60
push eax
lea ecx, [esp + 0xc7c]
sub ecx, esi
push ecx
push esi
call fcn.0040a6b0
add esp, 0x10
jmp 0x40b3d9
push ebx
push edi
mov ecx, 3
call fcn.0040af60
push eax
lea edx, [esp + 0xc80]
sub edx, esi
push edx
push esi
call fcn.0040a6b0
add esp, 0x14
push esi
call fcn.0040a460
add esi, eax
cmp ebp, 0x85100000
mov eax, dword [esp + 0xd84]
jne 0x40b411
test eax, eax
jne 0x40b3f9
mov eax, 0x430dcc
push eax
mov ecx, 7
call fcn.0040af60
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
jmp 0x40b430
test eax, eax
jne 0x40b41a
mov eax, 0x430dcc
push eax
mov ecx, 8
call fcn.0040af60
lea ecx, [esp + 0xc78]
push eax
sub ecx, esi
push ecx
push esi
call fcn.0040a6b0
add esp, 0x10
push esi
call fcn.0040a460
add esi, eax
mov eax, dword [0x433d9c]
test eax, eax
jne 0x40b530
call fcn.00411d10
mov ecx, 0x433810
call fcn.0040b050
mov edi, dword [0x4336f0]
mov ecx, 0x433810
mov dword [esp + 0x18], edi
mov dword [0x4336f0], 0
call fcn.0040b0a0
test edi, edi
je 0x40b484
mov ebx, dword [edi + 4]
jmp 0x40b486
xor ebx, ebx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test ebx, ebx
mov ebp, str.Crash
jne 0x40b49f
mov ebp, str.Error
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x478]
mov ecx, ebp
call fcn.0040ba20
mov edi, eax
cmp edi, 0xffffffff
je 0x40b4d3
xor edx, edx
test ebx, ebx
setne dl
push ebx
mov ecx, edi
dec edx
and edx, 2
call fcn.0040bc30
mov ecx, edi
call fcn.0040bc50
call fcn.00412e30
test eax, eax
je 0x40b52b
mov eax, dword [0x4339cc]
test eax, eax
jne 0x40b52b
lea ecx, [esp + 0x1c]
push ecx
push 0x104
lea edx, [esp + 0x33c]
push edx
mov edx, 0x42ba8c
mov ecx, ebp
call fcn.0040b8d0
mov edi, eax
cmp edi, 0xffffffff
je 0x40b52b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
mov ecx, edi
mov dword [esp + 0x18], 0x433840
call fcn.00412c90
mov ecx, edi
call fcn.0040bc50
call fcn.00411d20
call fcn.0040b890
test eax, eax
mov eax, dword [esp + 0xd88]
je 0x40b5af
test eax, eax
je 0x40b580
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 0xd
call fcn.0040af60
push eax
push esi
call fcn.0040a2c0
mov edi, 0x30
mov esi, 0x103
mov ebp, 7
mov ebx, 2
mov dword [esp + 0x10], 6
jmp 0x40b619
lea edx, [esp + 0xc74]
sub edx, esi
push edx
mov ecx, 0xc
call fcn.0040af60
push eax
push esi
call fcn.0040a2c0
mov esi, 0x104
mov ebp, 7
mov dword [esp + 0x10], 6
jmp 0x40b612
test eax, eax
je 0x40b5ec
lea eax, [esp + 0xc74]
sub eax, esi
push eax
mov ecx, 0xa
call fcn.0040af60
push eax
push esi
call fcn.0040a2c0
mov edi, 0x30
mov esi, 0x101
mov ebp, 2
mov ebx, 1
mov dword [esp + 0x10], 0
jmp 0x40b619
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 9
call fcn.0040af60
push eax
push esi
call fcn.0040a2c0
xor esi, esi
mov ebp, 1
mov dword [esp + 0x10], esi
mov edi, 0x10
xor ebx, ebx
mov ecx, 0x4336d8
call fcn.0040b050
or esi, edi
or esi, 0x52000
test ebx, ebx
je 0x40b631
mov ebp, ebx
mov eax, dword [0x433800]
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov edi, edx
test edi, edi
jle 0x40b67f
mov eax, dword [esp + 0xd84]
test eax, eax
jne 0x40b656
mov eax, 0x430dcc
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xd84]
push eax
mov eax, dword [esp + 0xd80]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call dword [edi + 8]
test eax, eax
je 0x40b6bc
mov edi, dword [edi + 4]
test edi, edi
jg 0x40b646
call fcn.00411860
mov edi, eax
test edi, edi
je 0x40b6a2
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b6a0
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40b6a2
xor edi, edi
push esi
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0x47c]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebp, eax
mov ecx, 0x4336d8
call fcn.0040b0a0
cmp ebp, dword [esp + 0x10]
pop esi
jne 0x40b6ed
call fcn.0040b780
pop edi
pop ebp
mov dword [0x433828], 0
mov eax, 1
pop ebx
add esp, 0xd64
ret 0x18
cmp ebp, ebx
jne 0x40b70c
pop edi
pop ebp
mov dword [0x433828], 0
mov eax, 1
pop ebx
add esp, 0xd64
ret 0x18
push 1
call fcn.0040bee0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jns 0x40b73f
lea eax, [esp + 0x14]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40b73f
cmp dword [esp + 0x14], 0x103
jne 0x40b750
mov ecx, dword [esp + 0xd88]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x433828], 0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd64
ret 0x18