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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4253e5
mov eax, dword fs:[0]
push eax
sub esp, 0xe98
mov eax, dword [0x44c028]
xor eax, esp
mov dword [esp + 0xe90], eax
push ebx
push esi
push edi
mov eax, dword [0x44c028]
xor eax, esp
push eax
lea eax, [esp + 0xea8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x48], esi
call dword [0x4360d0]
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], eax
call dword [0x4368bc]
and dword [esp + 0xeb0], 0
lea ecx, [esp + 0x14]
call dword [0x4368ac]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x9c], ax
lea eax, [esp + 0x9e]
push eax
call fcn.0042216e
add esp, 0xc
push 0x104
lea eax, [esp + 0x98]
push eax
call dword [0x4360cc]
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x4a0]
push eax
lea eax, [esp + 0x6a4]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [0x436234]
add esp, 0x14
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x18]
call dword [0x436898]
push 1
push dword [esp + 0x18]
push 0x43aedc
push esi
call fcn.0041e0ca
mov ebx, dword [0x436884]
mov dword [esp + 0x10], 0x41
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
mov ecx, dword [esp + 0x34]
test ecx, eax
je 0x40c747
mov eax, dword [0x43aef8]
mov dword [esp + 0x64], eax
mov eax, dword [0x43aefc]
movzx ecx, word [esp + 0x10]
mov dword [esp + 0x68], eax
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x43af00
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [esp + 0x8a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x64]
push eax
mov word [esp + 0x68], cx
mov word [esp + 0x88], cx
call dword [0x4360c8]
cmp eax, 3
je 0x40c528
cmp eax, 2
jne 0x40c747
mov eax, 0x100
push eax
lea ecx, [esp + 0x4a0]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [esp + 0x2b4]
push eax
lea eax, [esp + 0x80]
push eax
call dword [0x4360c4]
cmp eax, esi
je 0x40c747
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x60]
push eax
push esi
lea eax, [esp + 0x70]
push eax
call dword [0x4360c0]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
sub eax, edx
mov dword [esp + 0x40], ecx
sbb ecx, esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
call dword [0x4368c4]
lea ecx, [esp + 0x28]
call dword [0x4368bc]
lea ecx, [esp + 0x1c]
call dword [0x4368bc]
push 0x438ce8
push 0x43ae38
lea eax, [esp + 0x60]
mov byte [esp + 0xeb8], 3
mov esi, dword [0x436ac0]
mov edi, 0x4a0f98
push eax
mov ecx, edi
call esi
push dword [esp + 0x40]
mov byte [esp + 0xeb4], 4
mov eax, dword [eax]
push dword [esp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x58]
call dword [0x4368c8]
lea ecx, [esp + 0x20]
call dword [0x4368bc]
push 0x438ce8
push 0x43ae38
lea eax, [esp + 0x40]
push eax
mov ecx, edi
mov byte [esp + 0xebc], 5
call esi
push dword [esp + 0x50]
mov byte [esp + 0xeb4], 6
mov eax, dword [eax]
push dword [esp + 0x50]
push eax
lea eax, [esp + 0x2c]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x38]
call dword [0x4368c8]
lea ecx, [esp + 0x18]
call dword [0x4368bc]
push 0x438ce8
mov byte [esp + 0xeb4], 7
push 0x43ae38
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call esi
push dword [esp + 0x30]
mov byte [esp + 0xeb4], 8
mov eax, dword [eax]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0xeb0], 7
call dword [0x4368c8]
mov esi, dword [esp + 0x48]
xor edi, edi
inc edi
push edi
push 0
push 0x43af08
push esi
call fcn.0041e0ca
mov eax, esi
call fcn.0041d574
push edi
push dword [esp + 0x28]
push 0x43af20
push esi
call fcn.0041e0ca
push edi
push dword [esp + 0x20]
push 0x43af38
push esi
call fcn.0041e0ca
push edi
push dword [esp + 0x24]
push 0x43af60
push esi
call fcn.0041e0ca
push edi
push dword [esp + 0x1c]
push 0x43af88
push esi
call fcn.0041e0ca
call fcn.0041d59e
lea ecx, [esp + 0x18]
call dword [0x4368c8]
lea ecx, [esp + 0x20]
call dword [0x4368c8]
lea ecx, [esp + 0x1c]
call dword [0x4368c8]
lea ecx, [esp + 0x28]
call dword [0x4368c8]
lea ecx, [esp + 0x24]
mov byte [esp + 0xeb0], 0
call dword [0x4368c8]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x5a
jbe 0x40c4af
lea ecx, [esp + 0x14]
call dword [0x4368c8]
mov ecx, dword [esp + 0xea8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe90]
xor ecx, esp
call fcn.0042198a
mov esp, ebp
pop ebp
ret