Function at 0x478e30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bcb98
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x474], ecx
mov eax, dword [ebp - 0x474]
mov dword [eax], vtable.VXI_Unexpected.0
mov byte [ebp - 0x454], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x453]
push ecx
call fcn.0058c670
add esp, 0xc
push 0x400
lea edx, [ebp - 0x454]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x454]
push eax
call fcn.00478e10
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x478edd
push 0x3a
lea ecx, [ebp - 0x454]
push ecx
call fcn.00478e10
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x478edd
lea edx, [ebp - 0x454]
mov dword [ebp - 0x4c], edx
jmp 0x478ee6
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
push pe_nt_image_headers32
push 0
push 0x67e5c8
call fcn.0058c670
add esp, 0xc
push 0xff
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x67e5c8
call fcn.00589270
add esp, 0xc
mov edx, dword [ebp - 0x4c]
push edx
push str._s___
push 0x67e6c8
call fcn.00479d90
add esp, 0xc
mov dword [ebp - 0x478], 0x67e6c8
mov eax, dword [ebp - 0x478]
add eax, 1
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x478]
mov dl, byte [ecx]
mov byte [ebp - 0x47d], dl
add dword [ebp - 0x478], 1
cmp byte [ebp - 0x47d], 0
jne 0x478f3f
mov eax, dword [ebp - 0x478]
sub eax, dword [ebp - 0x47c]
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
mov byte [ecx + 0x67e6c7], 0
mov edx, dword [ebp - 0x4c]
push edx
push str._s___Application_Error
push 0x67e7c8
call fcn.00479d90
add esp, 0xc
mov dword [ebp - 0x488], 0x67e7c8
mov eax, dword [ebp - 0x488]
add eax, 1
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x488]
mov dl, byte [ecx]
mov byte [ebp - 0x48d], dl
add dword [ebp - 0x488], 1
cmp byte [ebp - 0x48d], 0
jne 0x478fab
mov eax, dword [ebp - 0x488]
sub eax, dword [ebp - 0x48c]
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
mov byte [ecx + 0x67e7c7], 0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x498], edx
mov eax, dword [ebp - 0x498]
add eax, 1
mov dword [ebp - 0x49c], eax
mov ecx, dword [ebp - 0x498]
mov dl, byte [ecx]
mov byte [ebp - 0x49d], dl
add dword [ebp - 0x498], 1
cmp byte [ebp - 0x49d], 0
jne 0x479000
mov eax, dword [ebp - 0x498]
sub eax, dword [ebp - 0x49c]
mov dword [ebp - 0x4a4], eax
mov ecx, dword [ebp - 0x4a4]
sub ecx, 4
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 0x67e8c8
call fcn.0058e2c0
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 0x67e8c8], 0
lea edx, [ebp - 0x2c]
push edx
call fcn.004289f0
add esp, 4
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
call fcn.004040f0
push eax
push str._slog_
push 0x67e9c8
call fcn.00479d90
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.004040b0
mov dword [ebp - 0x4ac], 0x67e9c8
mov eax, dword [ebp - 0x4ac]
add eax, 1
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4ac]
mov dl, byte [ecx]
mov byte [ebp - 0x4b1], dl
add dword [ebp - 0x4ac], 1
cmp byte [ebp - 0x4b1], 0
jne 0x4790ac
mov eax, dword [ebp - 0x4ac]
sub eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b8], eax
mov ecx, dword [ebp - 0x4b8]
mov byte [ecx + 0x67e9c7], 0
push 0x67e9c8
lea ecx, [ebp - 0x48]
call fcn.00404040
mov dword [ebp - 4], 0
lea edx, [ebp - 0x48]
push edx
call fcn.00429690
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004040b0
cmp dword [ebp - 0x50], 0
je 0x47913d
push 0x67e9c8
push str._sunexpected.txt
push 0x67eac8
call fcn.00479d90
add esp, 0xc
jmp 0x4791c1
push 0xff
push 0x5f042c
push 0x67e9c8
call fcn.00589270
add esp, 0xc
mov dword [ebp - 0x4bc], 0x67e9c8
mov eax, dword [ebp - 0x4bc]
add eax, 1
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x4bc]
mov dl, byte [ecx]
mov byte [ebp - 0x4c1], dl
add dword [ebp - 0x4bc], 1
cmp byte [ebp - 0x4c1], 0
jne 0x47916d
mov eax, dword [ebp - 0x4bc]
sub eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4c8]
mov byte [ecx + 0x67e9c7], 0
push 0x67e5c8
push str.c:_s_err.log
push 0x67eac8
call fcn.00479d90
add esp, 0xc
mov dword [ebp - 0x4cc], 0x67eac8
mov edx, dword [ebp - 0x4cc]
add edx, 1
mov dword [ebp - 0x4d0], edx
mov eax, dword [ebp - 0x4cc]
mov cl, byte [eax]
mov byte [ebp - 0x4d1], cl
add dword [ebp - 0x4cc], 1
cmp byte [ebp - 0x4d1], 0
jne 0x4791da
mov edx, dword [ebp - 0x4cc]
sub edx, dword [ebp - 0x4d0]
mov dword [ebp - 0x4d8], edx
mov eax, dword [ebp - 0x4d8]
mov byte [eax + 0x67eac7], 0
push 0x479360
call fcn.0058ae7f
add esp, 4
call fcn.004792e0
mov byte [0x67e5c4], 1
push 0
push 0
mov ecx, dword [ebp - 0x474]
push ecx
push 0x479900
push 0
push 0
call fcn.0058a2a4
add esp, 0x18
mov dword [0x67ebc8], eax
mov eax, dword [ebp - 0x474]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret