Function at 0x40b5e0
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov eax, dword [0x433a44]
sub esp, 0xd64
test eax, eax
push ebx
push ebp
push edi
jne 0x40bc8a
mov eax, dword [0x433a38]
test eax, eax
jne 0x40bc8a
push 0x104
lea eax, [esp + 0x230]
push eax
push 0
mov dword [0x433a38], 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 0x40b663
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.0040a830
mov dl, 0x2e
lea ecx, [esp + 0x128]
call fcn.0040a780
test eax, eax
je 0x40b6a0
mov dl, 0x2e
lea ecx, [esp + 0x128]
call fcn.0040a780
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.0040c1b0
mov al, byte [esp + 0x28]
test al, al
jne 0x40b6e7
mov eax, ebp
push ebp
and eax, 0xffff
push eax
xor ecx, ecx
call fcn.0040b490
push eax
lea ecx, [esp + 0x34]
push pe_nt_image_headers32
push ecx
call fcn.0040ac20
add esp, 0x14
mov ecx, dword [esp + 0xd78]
test ecx, ecx
mov edi, ecx
mov dword [esp + 0x10], edi
je 0x40b732
cmp byte [ecx], 0
je 0x40b732
mov ebx, dword [esp + 0xd7c]
cmp ebx, 0xfffffffe
je 0x40b70e
cmp ebx, 0xfffffffd
jne 0x40b739
push pe_nt_image_headers32
lea edx, [esp + 0xc74]
call fcn.0040bd10
test eax, eax
je 0x40b739
lea edx, [esp + 0xc70]
mov dword [esp + 0x10], edx
mov edi, edx
jmp 0x40b739
mov ebx, dword [esp + 0xd7c]
test edi, edi
push esi
lea esi, [esp + 0x474]
je 0x40b75f
push 0x800
push edi
lea eax, [esp + 0x47c]
push eax
call fcn.0040a830
lea esi, [esp + eax + 0x474]
test ebx, ebx
jle 0x40b784
push ebx
lea ecx, [esp + 0xc78]
push str.__u_
sub ecx, esi
push ecx
push esi
call fcn.0040ac20
add esp, 0x10
push esi
call fcn.0040a9d0
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.0040ac20
add esp, 0x10
push esi
call fcn.0040a9d0
add esi, eax
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call fcn.0040a830
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 1
call fcn.0040b490
push eax
lea edx, [esp + 0x47c]
push 0x800
push edx
call fcn.0040ac20
add esp, 0x10
lea eax, [esp + 0x474]
push eax
call fcn.0040a9d0
lea ecx, [esp + 0x230]
push ecx
mov ecx, 2
lea esi, [esp + eax + 0x478]
call fcn.0040b490
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.0040ac20
add esp, 0x10
push esi
call fcn.0040a9d0
add esi, eax
test edi, edi
je 0x40b911
cmp byte [edi], 0
je 0x40b911
lea eax, [ebx + 5]
cmp eax, 4
ja case.default.0x40b854
jmp dword [eax*4 + 0x40bc98]
push edi
mov ecx, 4
call fcn.0040b490
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.0040ac20
add esp, 0x10
jmp 0x40b909
mov ecx, 5
jmp 0x40b8cd
push edi
mov ecx, 6
call fcn.0040b490
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.0040ac20
add esp, 0x10
jmp 0x40b909
push edi
mov ecx, 0xb
call fcn.0040b490
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.0040ac20
add esp, 0x10
jmp 0x40b909
mov ecx, 0xe
push edi
call fcn.0040b490
push eax
lea ecx, [esp + 0xc7c]
sub ecx, esi
push ecx
push esi
call fcn.0040ac20
add esp, 0x10
jmp 0x40b909
push ebx
push edi
mov ecx, 3
call fcn.0040b490
push eax
lea edx, [esp + 0xc80]
sub edx, esi
push edx
push esi
call fcn.0040ac20
add esp, 0x14
push esi
call fcn.0040a9d0
add esi, eax
cmp ebp, 0x85100000
mov eax, dword [esp + 0xd84]
jne 0x40b941
test eax, eax
jne 0x40b929
mov eax, 0x430fbc
push eax
mov ecx, 7
call fcn.0040b490
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
jmp 0x40b960
test eax, eax
jne 0x40b94a
mov eax, 0x430fbc
push eax
mov ecx, 8
call fcn.0040b490
lea ecx, [esp + 0xc78]
push eax
sub ecx, esi
push ecx
push esi
call fcn.0040ac20
add esp, 0x10
push esi
call fcn.0040a9d0
add esi, eax
mov eax, dword [0x433eec]
test eax, eax
jne 0x40ba60
call fcn.004129b0
mov ecx, 0x433a20
call fcn.0040b580
mov edi, dword [0x433900]
mov ecx, 0x433a20
mov dword [esp + 0x18], edi
mov dword [0x433900], 0
call fcn.0040b5d0
test edi, edi
je 0x40b9b4
mov ebx, dword [edi + 4]
jmp 0x40b9b6
xor ebx, ebx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test ebx, ebx
mov ebp, str.Crash
jne 0x40b9cf
mov ebp, str.Error
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x478]
mov ecx, ebp
call fcn.0040bf50
mov edi, eax
cmp edi, 0xffffffff
je 0x40ba03
xor edx, edx
test ebx, ebx
setne dl
push ebx
mov ecx, edi
dec edx
and edx, 2
call fcn.0040c160
mov ecx, edi
call fcn.0040c180
call fcn.00413ad0
test eax, eax
je 0x40ba5b
mov eax, dword [0x433bdc]
test eax, eax
jne 0x40ba5b
lea ecx, [esp + 0x1c]
push ecx
push 0x104
lea edx, [esp + 0x33c]
push edx
mov edx, 0x42bb2c
mov ecx, ebp
call fcn.0040be00
mov edi, eax
cmp edi, 0xffffffff
je 0x40ba5b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
mov ecx, edi
mov dword [esp + 0x18], 0x433a50
call fcn.00413930
mov ecx, edi
call fcn.0040c180
call fcn.004129c0
call fcn.0040bdc0
test eax, eax
mov eax, dword [esp + 0xd88]
je 0x40badf
test eax, eax
je 0x40bab0
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 0xd
call fcn.0040b490
push eax
push esi
call fcn.0040a830
mov edi, 0x30
mov esi, 0x103
mov ebp, 7
mov ebx, 2
mov dword [esp + 0x10], 6
jmp 0x40bb49
lea edx, [esp + 0xc74]
sub edx, esi
push edx
mov ecx, 0xc
call fcn.0040b490
push eax
push esi
call fcn.0040a830
mov esi, 0x104
mov ebp, 7
mov dword [esp + 0x10], 6
jmp 0x40bb42
test eax, eax
je 0x40bb1c
lea eax, [esp + 0xc74]
sub eax, esi
push eax
mov ecx, 0xa
call fcn.0040b490
push eax
push esi
call fcn.0040a830
mov edi, 0x30
mov esi, 0x101
mov ebp, 2
mov ebx, 1
mov dword [esp + 0x10], 0
jmp 0x40bb49
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 9
call fcn.0040b490
push eax
push esi
call fcn.0040a830
xor esi, esi
mov ebp, 1
mov dword [esp + 0x10], esi
mov edi, 0x10
xor ebx, ebx
mov ecx, 0x4338e8
call fcn.0040b580
or esi, edi
or esi, 0x52000
test ebx, ebx
je 0x40bb61
mov ebp, ebx
mov eax, dword [0x433a10]
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov edi, edx
test edi, edi
jle 0x40bbaf
mov eax, dword [esp + 0xd84]
test eax, eax
jne 0x40bb86
mov eax, 0x430fbc
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 0x40bbec
mov edi, dword [edi + 4]
test edi, edi
jg 0x40bb76
call fcn.00412500
mov edi, eax
test edi, edi
je 0x40bbd2
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40bbd0
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40bbd2
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, 0x4338e8
call fcn.0040b5d0
cmp ebp, dword [esp + 0x10]
pop esi
jne 0x40bc1d
call fcn.0040bcb0
pop edi
pop ebp
mov dword [0x433a38], 0
mov eax, 1
pop ebx
add esp, 0xd64
ret 0x18
cmp ebp, ebx
jne 0x40bc3c
pop edi
pop ebp
mov dword [0x433a38], 0
mov eax, 1
pop ebx
add esp, 0xd64
ret 0x18
push 1
call fcn.0040c400
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jns 0x40bc6f
lea eax, [esp + 0x14]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40bc6f
cmp dword [esp + 0x14], 0x103
jne 0x40bc80
mov ecx, dword [esp + 0xd88]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x433a38], 0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd64
ret 0x18