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

Disassembly:
push 0xffffffffffffffff
push 0x445934
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4538d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [0x452028]
mov dword [esi + 0xc0], eax
mov ecx, dword [0x452028]
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esi + 0xc4], ecx
mov edx, dword [0x452028]
mov dword [esi + 0xc8], edx
mov eax, dword [0x452028]
mov dword [esi + 0xcc], eax
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xd4], ecx
mov edx, dword [0x452028]
mov dword [esi + 0x388], edx
mov eax, dword [0x452028]
mov dword [esi + 0x394], eax
mov ebx, 1
mov byte [esp + 0x24], 5
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x13c], edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], ebx
call dword [0x447124]
xor edx, edx
mov ecx, 0x18
div ecx
mov ebp, edx
mov dword [esp + 0x2c], ebp
call dword [0x447124]
xor edx, edx
mov ecx, 0x3c
div ecx
cmp ebp, 9
jb 0x40c26d
cmp ebp, 0x15
jbe 0x40c276
shr ebp, 1
add ebp, 9
mov dword [esp + 0x2c], ebp
movzx eax, dx
shl eax, 0x10
movzx ebp, bp
or ebp, eax
mov dword [esp + 0x14], eax
mov dword [esi + 0xa0], ebp
call dword [0x447124]
xor edx, edx
mov ecx, 5
div ecx
mov dword [esi + 0xa8], ebp
add edx, ebx
mov dword [esi + 0xa4], edx
call dword [0x447124]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [esi + 0xb0], ebp
mov dword [esi + 0xbc], edi
mov dword [esi + 0xd8], ebx
mov dword [esi + 0x3a0], edi
mov dword [esi + 0x3a4], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0x104], edi
push 0x447738
lea ecx, [esi + 0xc4]
mov dword [esi + 0x10c], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
add edx, ebx
mov dword [esi + 0xac], edx
mov edx, dword [esp + 0x30]
dec edx
movzx eax, dx
or eax, dword [esp + 0x18]
mov dword [esi + 0x11c], ebx
mov dword [esi + 0xb4], eax
mov dword [esi + 0x108], 0xffffffff
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x34], edi
call fcn.004041f0
cmp dword [esp + 0x30], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x164], edi
mov dword [esi + 0x168], edi
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], edi
mov dword [esi + 0x160], 0xa
mov dword [esi + 0x384], edi
mov dword [esi + 0x38c], ebx
mov dword [esi + 0x390], edi
mov dword [esi + 0x398], edi
je 0x40c428
mov ecx, esi
call fcn.0040b130
mov dword [esi + 0x100], edi
call fcn.0040af90
test eax, eax
mov eax, esi
jne 0x40c43c
mov dword [esi + 0x68], ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8