Function at 0x402f20
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb48
mov eax, dword [0x434064]
xor eax, esp
mov dword [esp + 0xb44], eax
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x348]
push 0x400
push eax
push 0
mov esi, dword [edi + 0x3c]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x435e38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x435e04
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435e68
push dword [esp + 0xc]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435e14
push dword [esp + 0xc]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435de4
push dword [esp + 0xc]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi], 0x4550
mov dword [esp + 0x1c], eax
jne 0x40308a
push 0x44
lea eax, [esp + 0x304]
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x2c], xmm0
call fcn.0040b620
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x304]
push eax
push 0
push 0
push 0x8000004
push 0
push 0
push 0
push 0
lea eax, [esp + 0x36c]
push eax
call dword [esp + 0x38]
test eax, eax
je 0x40308a
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x10007
push eax
push dword [esp + 0x28]
call dword [esp + 0x14]
test eax, eax
je 0x40308a
push 0x435dd0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435e48
push dword [esp + 0xc]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [esp + 0x30]
call eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4030a3
call fcn.00405e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00403c80
push eax
call fcn.004060b0
add esp, 4
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xb44]
xor ecx, esp
call fcn.0040963e
mov esp, ebp
pop ebp
ret
push 0
push dword [esi + 0x54]
push edi
push eax
push dword [esp + 0x30]
call dword [esp + 0x28]
xor eax, eax
mov dword [esp + 8], 0
cmp ax, word [esi + 6]
jae 0x40310d
xor ecx, ecx
mov dword [esp + 0xc], ecx
add ecx, edi
add ecx, dword [edi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x30]
call dword [esp + 0x28]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
inc edx
movzx eax, word [esi + 6]
add ecx, 0x28
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
cmp edx, eax
jl 0x4030c8
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [esp + 0xe0]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [esp + 0x28]
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x10]
mov dword [esp + 0xe0], eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x28]
call dword [esp + 0x20]
push dword [esp + 0x24]
call dword [esp + 0x20]
mov ecx, dword [esp + 0xb4c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040963e
mov esp, ebp
pop ebp
ret