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

Disassembly:
sub esp, 0x160
mov eax, dword [0x43e040]
xor eax, esp
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x164]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
xor ebp, ebp
movsx edx, byte [ebp + str.x123456789]
mov eax, dword [esp + 0x24]
mov esi, dword [0x435248]
push edx
push eax
mov eax, dword [esp + 0x1c]
add eax, 0xc
push eax
lea ecx, [esp + 0x6c]
push str._s_s.id_c
push ecx
mov dword [esp + 0x30], 2
call esi
mov ebx, dword [0x435164]
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x78]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bd3a
mov eax, dword [esp + 0x14]
test byte [eax + 0x728], 8
je 0x40bec0
movsx ecx, byte [ebp + str.x123456789]
mov edx, dword [esp + 0x24]
push ecx
push edx
add eax, 0x110
push eax
lea eax, [esp + 0x6c]
push str._s_s.id_c
push eax
mov dword [esp + 0x30], 0xa
call esi
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x78]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x40bec0
mov ebx, dword [0x43515c]
xor edx, edx
push edx
lea eax, [esp + 0x1c]
push eax
push 0x20
lea ecx, [esp + 0x48]
push ecx
push edi
mov word [esp + 0x70], dx
call ebx
cmp dword [esp + 0x3c], 0x32584449
jne 0x40beb7
mov edx, 0x202
cmp word [esp + 0x40], dx
jb 0x40bdad
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x68]
push ecx
push edi
call ebx
test byte [esp + 0x5c], 1
je 0x40bd91
or dword [esp + 0x1c], 0x8000
mov ax, word [esp + 0x5e]
test ax, ax
jbe 0x40bdad
push 0
movzx edx, ax
push 0
add edx, 0x24
push edx
push edi
call dword [0x435158]
push 0x400
call fcn.00423abc
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push eax
push edi
mov dword [esp + 0x4c], eax
call ebx
movzx esi, word [esp + 0x42]
xor ecx, ecx
test byte [esp + 0x5c], 2
mov eax, esi
je 0x40be1d
mov edx, 0x50
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423abc
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + esi*4]
shl edx, 4
push edx
push eax
push edi
mov dword [esp + 0x34], eax
call ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
jmp 0x40be5a
mov edx, 0x30
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423abc
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + esi*2]
shl edx, 4
push edx
push eax
push edi
mov dword [esp + 0x34], eax
call ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x14]
mov cx, word [esp + 0x1c]
mov edx, dword [esp + 0x38]
add eax, 0x730
mov eax, dword [eax + 0x14]
mov ebx, dword [eax]
mov word [esp + 0x2a], cx
mov ecx, dword [ebx + 4]
push ecx
push ebx
lea esi, [esp + 0x30]
mov word [esp + 0x30], bp
mov dword [esp + 0x34], edx
call fcn.0040da30
mov ecx, dword [esp + 0x14]
add ecx, 0x730
mov esi, eax
call fcn.0040da80
mov dword [ebx + 4], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
test ebp, ebp
jne 0x40beb7
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x4c]
call fcn.0040c050
push edi
call dword [0x435198]
jmp 0x40bec4
test ebp, ebp
je 0x40beee
inc ebp
cmp ebp, 0xa
jl 0x40bc89
mov eax, 1
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423ac7
add esp, 0x160
ret 4
xor eax, eax
jmp 0x40bed3