Function at 0x40c9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x413310
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x70]
mov ebx, dword [ebp + 0xc]
mov edx, dword fs:[0]
mov dword [esi + 0x70], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov dword [esi + 4], eax
push ebx
call fcn.00418660
add esp, 4
cmp eax, 1
je 0x40ca04
push ebx
call fcn.00418650
add esp, 4
cmp eax, 1
jne 0x40cb26
lea eax, [esi + 4]
mov dword [esi + 0x18], 0x45dac0
mov dword [esi + 0x1c], 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x63], 0
mov dword [esi + 0x5f], 0
mov dword [esi + 0x78], 0
lea ecx, [esi + 8]
mov dword [esi + 0x30], eax
lea eax, [esi + 5]
mov dword [esi + 0x34], fcn.0041abf0
mov dword [esi + 0x38], eax
lea eax, [esi + 6]
mov dword [esi + 0x3c], fcn.0041abf0
mov dword [esi + 0x40], eax
lea eax, [esi + 7]
mov dword [esi + 0x44], fcn.0041abf0
mov dword [esi + 0x48], eax
lea eax, [esi + 0x50]
mov dword [esi + 0x4c], fcn.0041abf0
mov dword [esi + 8], eax
lea eax, [esi + 0x30]
mov byte [esi + 0xc], 4
mov dword [esi + 0x28], eax
lea eax, [esi + 0x58]
mov dword [esi + 0x2c], 4
mov dword [esi + 0x50], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x54], 0xf
push eax
push 0x45da8c
push ecx
call fcn.00417c00
add esp, 0xc
mov cl, byte [esi + 0xc]
test al, al
jne 0x40cb9b
cmp cl, 3
mov ecx, dword [ebp + 0xc]
jne 0x40cb01
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [esi + 0x14], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x78], 1
push eax
call dword [ecx]
add esp, 4
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40caef
push dword [eax + 8]
push ecx
push dword [edx]
call fcn.00407d00
add esp, 0xc
push 4
push 0xc
push dword [esi + 0x10]
call fcn.00407d00
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, 0xf
mov dword [esi + 0x78], 0xffffffff
sub eax, dword [esi + 0x54]
jb 0x40cc06
push eax
lea eax, [esi + 0x58]
push eax
push ecx
call fcn.00407860
add esp, 0xc
jmp 0x40cb89
lea edi, [esi + 4]
lea eax, [esi + 5]
mov dword [esi + 0x18], 0x45dac0
mov dword [esi + 0x1c], 4
lea ecx, [esi + 6]
lea edx, [esi + 7]
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], fcn.0041abf0
mov dword [esi + 0x38], eax
lea eax, [esi + 0x30]
mov dword [esi + 0x3c], fcn.0041abf0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], fcn.0041abf0
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], fcn.0041abf0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x2c], 4
push eax
push ebx
call fcn.00418610
add esp, 8
mov ecx, dword [esi + 0x70]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esi + 0x13]
movzx edx, word [esi + 0x11]
mov edi, 0x45da6c
movzx ebx, cl
mov dword [esi + 0x78], 2
shl edi, 0x18
or edi, 0x28
shl eax, 0x10
or edx, eax
mov eax, 0x45da6c
shr eax, 8
cmp cl, 4
mov ecx, 2
cmovne edi, dword [esi + 0xd]
cmovne ecx, ebx
cmovne eax, edx
mov byte [esi + 0x18], cl
mov word [esi + 0x1d], ax
shr eax, 0x10
mov byte [esi + 0x1f], al
mov dword [esi + 0x19], edi
push 0x45dafc
push 0x45d374
lea eax, [esi + 0x18]
push eax
push 0x2b
push 0x45d348
call fcn.00458b30
add esp, 0x14
ud2
push 0x45db0c
push 0xf
push eax
call fcn.00458700
add esp, 0xc
ud2