Function at 0x410ea0
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov eax, dword [0x442dac]
sub esp, 0xd64
test eax, eax
push ebp
push esi
jne 0x411554
mov eax, dword [0x442da0]
test eax, eax
jne 0x411554
push ebx
push edi
push 0x104
lea eax, [esp + 0x234]
push eax
push 0
mov dword [0x442da0], 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 0x410f24
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.00410330
mov dl, 0x2e
lea ecx, [esp + 0x12c]
call fcn.004101e0
test eax, eax
je 0x410f61
mov dl, 0x2e
lea ecx, [esp + 0x12c]
call fcn.004101e0
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.00411a80
mov al, byte [esp + 0x2c]
test al, al
jne 0x410fa8
mov eax, ebx
push ebx
and eax, 0xffff
push eax
xor ecx, ecx
call fcn.00410d40
push eax
lea ecx, [esp + 0x38]
push 0x100
push ecx
call fcn.004104c0
add esp, 0x14
mov ecx, dword [esp + 0xd7c]
test ecx, ecx
mov edi, ecx
mov dword [esp + 0x18], edi
je 0x410ff3
cmp byte [ecx], 0
je 0x410ff3
mov ebp, dword [esp + 0xd80]
cmp ebp, 0xfffffffe
je 0x410fcf
cmp ebp, 0xfffffffd
jne 0x410ffa
push 0x100
lea edx, [esp + 0xc78]
call fcn.004115e0
test eax, eax
je 0x410ffa
lea edx, [esp + 0xc74]
mov dword [esp + 0x18], edx
mov edi, edx
jmp 0x410ffa
mov ebp, dword [esp + 0xd80]
test edi, edi
lea esi, [esp + 0x474]
je 0x41101f
push 0x800
push edi
lea eax, [esp + 0x47c]
push eax
call fcn.00410330
lea esi, [esp + eax + 0x474]
test ebp, ebp
jle 0x411044
push ebp
lea ecx, [esp + 0xc78]
push str.__u_
sub ecx, esi
push ecx
push esi
call fcn.004104c0
add esp, 0x10
push esi
call fcn.00410400
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.004104c0
add esp, 0x10
push esi
call fcn.00410400
add esi, eax
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call fcn.00410330
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 1
call fcn.00410d40
push eax
lea edx, [esp + 0x47c]
push 0x800
push edx
call fcn.004104c0
add esp, 0x10
lea eax, [esp + 0x474]
push eax
call fcn.00410400
lea ecx, [esp + 0x230]
push ecx
mov ecx, 2
lea esi, [esp + eax + 0x478]
call fcn.00410d40
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.004104c0
add esp, 0x10
push esi
call fcn.00410400
add esi, eax
test edi, edi
je 0x4111d1
cmp byte [edi], 0
je 0x4111d1
lea eax, [ebp + 5]
cmp eax, 4
ja case.default.0x411114
jmp dword [eax*4 + 0x411564]
push edi
mov ecx, 4
call fcn.00410d40
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.004104c0
add esp, 0x10
jmp 0x4111c9
mov ecx, 5
jmp 0x41118d
push edi
mov ecx, 6
call fcn.00410d40
push eax
lea edx, [esp + 0xc7c]
sub edx, esi
push edx
push esi
call fcn.004104c0
add esp, 0x10
jmp 0x4111c9
push edi
mov ecx, 0xb
call fcn.00410d40
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
push esi
call fcn.004104c0
add esp, 0x10
jmp 0x4111c9
mov ecx, 0xe
push edi
call fcn.00410d40
push eax
lea ecx, [esp + 0xc7c]
sub ecx, esi
push ecx
push esi
call fcn.004104c0
add esp, 0x10
jmp 0x4111c9
push ebp
push edi
mov ecx, 3
call fcn.00410d40
push eax
lea edx, [esp + 0xc80]
sub edx, esi
push edx
push esi
call fcn.004104c0
add esp, 0x14
push esi
call fcn.00410400
add esi, eax
cmp ebx, 0x85100000
mov eax, dword [esp + 0xd84]
jne 0x411201
test eax, eax
jne 0x4111e9
mov eax, 0x43edcc
push eax
mov ecx, 7
call fcn.00410d40
push eax
lea eax, [esp + 0xc7c]
sub eax, esi
push eax
jmp 0x411220
test eax, eax
jne 0x41120a
mov eax, 0x43edcc
push eax
mov ecx, 8
call fcn.00410d40
lea ecx, [esp + 0xc78]
push eax
sub ecx, esi
push ecx
push esi
call fcn.004104c0
add esp, 0x10
push esi
call fcn.00410400
add esi, eax
mov eax, dword [0x44328c]
xor ebx, ebx
cmp eax, ebx
jne 0x411320
call fcn.0041d5e0
mov ecx, 0x442d88
call fcn.00410e40
mov edi, dword [0x442c68]
mov ecx, 0x442d88
mov dword [esp + 0x10], edi
mov dword [0x442c68], ebx
call fcn.00410e90
cmp edi, ebx
je 0x411272
mov ebp, dword [edi + 4]
jmp 0x411274
xor ebp, ebp
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp ebp, ebx
mov ebx, str.Crash
jne 0x41128d
mov ebx, str.Error
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x478]
mov ecx, ebx
call fcn.00411820
mov edi, eax
cmp edi, 0xffffffff
je 0x4112c1
xor edx, edx
test ebp, ebp
setne dl
push ebp
mov ecx, edi
dec edx
and edx, 2
call fcn.00411a30
mov ecx, edi
call fcn.00411a50
call fcn.0041e700
test eax, eax
je 0x411319
mov eax, dword [0x442f44]
test eax, eax
jne 0x411319
lea ecx, [esp + 0x1c]
push ecx
push 0x104
lea edx, [esp + 0x33c]
push edx
mov edx, 0x43a62c
mov ecx, ebx
call fcn.004116d0
mov edi, eax
cmp edi, 0xffffffff
je 0x411319
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 1
mov ecx, edi
mov dword [esp + 0x1c], 0x442db8
call fcn.0041e560
mov ecx, edi
call fcn.00411a50
call fcn.0041d5f0
xor ebx, ebx
call fcn.00411690
test eax, eax
mov eax, dword [esp + 0xd88]
je 0x4113a2
cmp eax, ebx
je 0x411373
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 0xd
call fcn.00410d40
push eax
push esi
call fcn.00410330
mov edi, 0x30
mov esi, 0x103
mov ebp, 7
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 6
jmp 0x41140d
lea edx, [esp + 0xc74]
sub edx, esi
push edx
mov ecx, 0xc
call fcn.00410d40
push eax
push esi
call fcn.00410330
mov esi, 0x104
mov ebp, 7
mov dword [esp + 0x14], 6
jmp 0x411404
cmp eax, ebx
je 0x4113de
lea eax, [esp + 0xc74]
sub eax, esi
push eax
mov ecx, 0xa
call fcn.00410d40
push eax
push esi
call fcn.00410330
mov edi, 0x30
mov esi, 0x101
mov ebp, 2
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebx
jmp 0x41140d
lea ecx, [esp + 0xc74]
sub ecx, esi
push ecx
mov ecx, 9
call fcn.00410d40
push eax
push esi
call fcn.00410330
xor esi, esi
mov ebp, 1
mov dword [esp + 0x14], ebx
mov edi, 0x10
mov dword [esp + 0x10], ebx
mov ecx, 0x442c50
call fcn.00410e40
mov eax, dword [esp + 0x10]
or esi, edi
or esi, 0x52000
cmp eax, ebx
je 0x411429
mov ebp, eax
mov eax, dword [0x442d78]
test al, 1
jne 0x411438
cmp eax, ebx
je 0x411438
mov ebx, eax
test bl, 1
jne 0x411478
test ebx, ebx
je 0x411478
mov eax, dword [esp + 0xd84]
test eax, eax
jne 0x411451
mov eax, 0x43edcc
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 0x4114b5
mov ebx, dword [ebx + 4]
jmp 0x411438
call fcn.0041d130
mov edi, eax
test edi, edi
je 0x41149b
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x411499
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x41149b
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, 0x442c50
call fcn.00410e90
cmp ebp, dword [esp + 0x14]
pop edi
pop ebx
jne 0x4114e6
call fcn.00411580
pop esi
mov dword [0x442da0], 0
mov eax, 1
pop ebp
add esp, 0xd64
ret 0x18
cmp ebp, dword [esp + 8]
jne 0x411506
pop esi
mov dword [0x442da0], 0
mov eax, 1
pop ebp
add esp, 0xd64
ret 0x18
push 1
call fcn.00411cd0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jns 0x411539
lea edx, [esp + 0x10]
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411539
cmp dword [esp + 0x10], 0x103
jne 0x41154a
mov eax, dword [esp + 0xd84]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x442da0], 0
pop esi
xor eax, eax
pop ebp
add esp, 0xd64
ret 0x18