Function at 0x40acd0
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov eax, dword [0x43f3a4]
sub esp, 0xd64
test eax, eax
push ebp
push esi
jne 0x40b384
mov eax, dword [0x43f398]
test eax, eax
jne 0x40b384
push ebx
push edi
push 0x104
lea eax, [esp + 0x234]
push eax
push 0
mov dword [0x43f398], 1
mov byte [esp + 0x23c], 0
mov byte [esp + 0x138], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x334]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
je 0x40ad54
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x104
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0x134]
push ecx
call fcn.0040a1b0
mov dl, 0x2e
lea ecx, [esp + 0x12c]
call fcn.0040a060
test eax, eax
je 0x40ad91
mov dl, 0x2e
lea ecx, [esp + 0x12c]
call fcn.0040a060
mov byte [eax], 0
mov ebx, dword [esp + 0xd78]
push 0x100
lea edx, [esp + 0x30]
push edx
push ebx
mov byte [esp + 0x38], 0
call fcn.0040b8b0
mov al, byte [esp + 0x2c]
test al, al
jne 0x40add8
mov eax, ebx
push ebx
and eax, 0xffff
push eax
xor ecx, ecx
call fcn.0040ab70
push eax
lea ecx, [esp + 0x38]
push 0x100
push ecx
call fcn.0040a340
add esp, 0x14
mov ecx, dword [esp + 0xd7c]
test ecx, ecx
mov edi, ecx
mov dword [esp + 0x18], edi
je 0x40ae23
cmp byte [ecx], 0
je 0x40ae23
mov ebp, dword [esp + 0xd80]
cmp ebp, 0xfffffffe
je 0x40adff
cmp ebp, 0xfffffffd
jne 0x40ae2a
push 0x100
lea edx, [esp + 0xc78]
call fcn.0040b410
test eax, eax
je 0x40ae2a
lea edx, [esp + 0xc74]
mov dword [esp + 0x18], edx
mov edi, edx
jmp 0x40ae2a
mov ebp, dword [esp + 0xd80]
test edi, edi
lea esi, [esp + 0x474]
je 0x40ae4f
push 0x800
push edi
lea eax, [esp + 0x47c]
push eax
call fcn.0040a1b0
lea esi, [esp + eax + 0x474]
test ebp, ebp
jle 0x40ae74
push ebp
lea ecx, [esp + 0xc78]
push str.__u_
sub ecx, esi
push ecx
push esi
call fcn.0040a340
add esp, 0x10
push esi
call fcn.0040a280
add esi, eax
mov edx, ebx
and edx, 0xffff
push edx
lea eax, [esp + 0xc78]
push str._:_error__u:
sub eax, esi
push eax
push esi
call fcn.0040a340
add esp, 0x10
push esi
call fcn.0040a280
add esi, eax
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call fcn.0040a1b0
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 1
call fcn.0040ab70
push eax
lea edx, [esp + 0x47c]
push 0x800
push edx
call fcn.0040a340
add esp, 0x10
lea eax, [esp + 0x474]
push eax
call fcn.0040a280
lea ecx, [esp + 0x230]
push ecx
mov ecx, 2
lea esi, [esp + eax + 0x478]
call fcn.0040ab70
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.0040a340
add esp, 0x10
push esi
call fcn.0040a280
add esi, eax
test edi, edi
je 0x40b001
cmp byte [edi], 0
je 0x40b001
lea eax, [ebp + 5]
cmp eax, 4
ja case.default.0x40af44
jmp dword [eax*4 + 0x40b394]
push edi
mov ecx, 4
call fcn.0040ab70
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.0040a340
add esp, 0x10
jmp 0x40aff9
mov ecx, 5
jmp 0x40afbd
push edi
mov ecx, 6
call fcn.0040ab70
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.0040a340
add esp, 0x10
jmp 0x40aff9
push edi
mov ecx, 0xb
call fcn.0040ab70
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.0040a340
add esp, 0x10
jmp 0x40aff9
mov ecx, 0xe
push edi
call fcn.0040ab70
push eax
lea ecx, [esp + 0xc7c]
sub ecx, esi
push ecx
push esi
call fcn.0040a340
add esp, 0x10
jmp 0x40aff9
push ebp
push edi
mov ecx, 3
call fcn.0040ab70
push eax
lea edx, [esp + 0xc80]
sub edx, esi
push edx
push esi
call fcn.0040a340
add esp, 0x14
push esi
call fcn.0040a280
add esi, eax
cmp ebx, 0x85100000
mov eax, dword [esp + 0xd84]
jne 0x40b031
test eax, eax
jne 0x40b019
mov eax, 0x43c93c
push eax
mov ecx, 7
call fcn.0040ab70
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
jmp 0x40b050
test eax, eax
jne 0x40b03a
mov eax, 0x43c93c
push eax
mov ecx, 8
call fcn.0040ab70
lea ecx, [esp + 0xc78]
push eax
sub ecx, esi
push ecx
push esi
call fcn.0040a340
add esp, 0x10
push esi
call fcn.0040a280
add esi, eax
mov eax, dword [0x43f84c]
xor ebx, ebx
cmp eax, ebx
jne 0x40b150
call fcn.004127a0
mov ecx, 0x43f380
call fcn.0040ac70
mov edi, dword [0x43f260]
mov ecx, 0x43f380
mov dword [esp + 0x10], edi
mov dword [0x43f260], ebx
call fcn.0040acc0
cmp edi, ebx
je 0x40b0a2
mov ebp, dword [edi + 4]
jmp 0x40b0a4
xor ebp, ebp
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp ebp, ebx
mov ebx, str.Crash
jne 0x40b0bd
mov ebx, str.Error
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x478]
mov ecx, ebx
call fcn.0040b650
mov edi, eax
cmp edi, 0xffffffff
je 0x40b0f1
xor edx, edx
test ebp, ebp
setne dl
push ebp
mov ecx, edi
dec edx
and edx, 2
call fcn.0040b860
mov ecx, edi
call fcn.0040b880
call fcn.004138c0
test eax, eax
je 0x40b149
mov eax, dword [0x43f53c]
test eax, eax
jne 0x40b149
lea ecx, [esp + 0x1c]
push ecx
push 0x104
lea edx, [esp + 0x33c]
push edx
mov edx, 0x4379bc
mov ecx, ebx
call fcn.0040b500
mov edi, eax
cmp edi, 0xffffffff
je 0x40b149
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 1
mov ecx, edi
mov dword [esp + 0x1c], 0x43f3b0
call fcn.00413720
mov ecx, edi
call fcn.0040b880
call fcn.004127b0
xor ebx, ebx
call fcn.0040b4c0
test eax, eax
mov eax, dword [esp + 0xd88]
je 0x40b1d2
cmp eax, ebx
je 0x40b1a3
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 0xd
call fcn.0040ab70
push eax
push esi
call fcn.0040a1b0
mov edi, 0x30
mov esi, 0x103
mov ebp, 7
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 6
jmp 0x40b23d
lea edx, [esp + 0xc74]
sub edx, esi
push edx
mov ecx, 0xc
call fcn.0040ab70
push eax
push esi
call fcn.0040a1b0
mov esi, 0x104
mov ebp, 7
mov dword [esp + 0x14], 6
jmp 0x40b234
cmp eax, ebx
je 0x40b20e
lea eax, [esp + 0xc74]
sub eax, esi
push eax
mov ecx, 0xa
call fcn.0040ab70
push eax
push esi
call fcn.0040a1b0
mov edi, 0x30
mov esi, 0x101
mov ebp, 2
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebx
jmp 0x40b23d
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 9
call fcn.0040ab70
push eax
push esi
call fcn.0040a1b0
xor esi, esi
mov ebp, 1
mov dword [esp + 0x14], ebx
mov edi, 0x10
mov dword [esp + 0x10], ebx
mov ecx, 0x43f248
call fcn.0040ac70
mov eax, dword [esp + 0x10]
or esi, edi
or esi, 0x52000
cmp eax, ebx
je 0x40b259
mov ebp, eax
mov eax, dword [0x43f370]
test al, 1
jne 0x40b268
cmp eax, ebx
je 0x40b268
mov ebx, eax
test bl, 1
jne 0x40b2a8
test ebx, ebx
je 0x40b2a8
mov eax, dword [esp + 0xd84]
test eax, eax
jne 0x40b281
mov eax, 0x43c93c
mov edx, dword [esp + 0xd80]
push eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0xd80]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [ebx + 8]
test eax, eax
je 0x40b2e5
mov ebx, dword [ebx + 4]
jmp 0x40b268
call fcn.004122f0
mov edi, eax
test edi, edi
je 0x40b2cb
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b2c9
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40b2cb
xor edi, edi
push esi
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x47c]
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebp, eax
mov ecx, 0x43f248
call fcn.0040acc0
cmp ebp, dword [esp + 0x14]
pop edi
pop ebx
jne 0x40b316
call fcn.0040b3b0
pop esi
mov dword [0x43f398], 0
mov eax, 1
pop ebp
add esp, 0xd64
ret 0x18
cmp ebp, dword [esp + 8]
jne 0x40b336
pop esi
mov dword [0x43f398], 0
mov eax, 1
pop ebp
add esp, 0xd64
ret 0x18
push 1
call fcn.0040bb00
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jns 0x40b369
lea edx, [esp + 0x10]
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40b369
cmp dword [esp + 0x10], 0x103
jne 0x40b37a
mov eax, dword [esp + 0xd84]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43f398], 0
pop esi
xor eax, eax
pop ebp
add esp, 0xd64
ret 0x18