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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427b40
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x436300]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
je 0x402d77
mov esi, dword [ebx + 8]
mov dword [esp + 0x18], esi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x402d75
cmp ecx, dword [esp + 0x18]
jbe 0x402d56
call fcn.0041162d
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x402d63
call fcn.0041162d
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push esi
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.00403840
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x10], 0
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], esi
mov word [esp + 0x5c], si
mov dword [esp + 0xa0], esi
mov eax, dword [edi + 0x14]
cmp eax, esi
mov byte [esp + 0x12], 0
mov dword [esp + 0x30], eax
jbe 0x403069
lea ebx, [edi + 4]
mov dword [esp + 0x28], ebx
jmp 0x402dc8
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
cmp dword [edi + 0x14], esi
ja 0x402dd2
call fcn.00410b3b
cmp dword [edi + 0x18], 8
jb 0x402ddc
mov eax, dword [ebx]
jmp 0x402dde
mov eax, ebx
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x14], 0
movzx edi, word [eax + esi*2]
mov dword [esp + 0x2c], 0
mov bl, 1
mov byte [esp + 0x11], 0
je 0x402e47
movzx eax, di
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call fcn.00404900
cmp eax, 0xffffffff
je 0x402e47
add esi, 1
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
jae 0x402e40
mov edi, dword [esp + 0x34]
cmp dword [edi + 0x14], esi
ja 0x402e2c
call fcn.00410b3b
cmp dword [edi + 0x18], 8
mov eax, dword [esp + 0x28]
jb 0x402e38
mov eax, dword [eax]
movzx edi, word [eax + esi*2]
mov bl, 1
jmp 0x402e42
xor bl, bl
mov byte [esp + 0x11], 1
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 0x14], 0
je 0x402e99
cmp byte [esp + 0x11], 0
jne 0x402e99
movzx edx, di
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edx
call fcn.00404900
cmp eax, 0xffffffff
je 0x402e99
cmp byte [esp + 0x10], 0
jne 0x402e83
movzx ecx, di
mov byte [esp + 0x10], 1
mov dword [esp + 0x18], ecx
jmp 0x402e97
cmp word [esp + 0x18], di
jne 0x402e99
mov byte [esp + 0x10], 0
mov dword [esp + 0x18], 0
xor bl, bl
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x14], 0
je 0x402ed5
cmp byte [esp + 0x11], 0
jne 0x402ed5
cmp byte [esp + 0x10], 0
jne 0x402ed5
movzx edx, di
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edx
call fcn.00404900
cmp eax, 0xffffffff
je 0x402ed5
cmp dword [esp + 0x6c], 0
je 0x402ed3
mov byte [esp + 0x12], 1
xor bl, bl
mov ecx, dword [esp + 0x44]
cmp dword [ecx + 0x14], 0
mov byte [esp + 0x13], 0
je 0x402f22
cmp byte [esp + 0x11], 0
jne 0x402f22
cmp byte [esp + 0x10], 0
jne 0x402f22
movzx edx, di
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edx
call fcn.00404900
cmp eax, 0xffffffff
je 0x402f22
cmp dword [esp + 0x6c], 0
je 0x402f14
mov byte [esp + 0x12], 1
movzx ecx, di
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x13], 1
jmp 0x402f88
cmp bl, 1
jne 0x402f88
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
mov esi, eax
jae 0x402f38
lea esi, [esp + 0x5c]
mov edx, dword [esp + 0x6c]
lea esi, [esi + edx*2]
test esi, esi
je 0x402f6a
mov edx, dword [esp + 0x70]
cmp edx, 8
mov ecx, eax
jae 0x402f52
lea ecx, [esp + 0x5c]
cmp ecx, esi
ja 0x402f6a
cmp edx, 8
jae 0x402f5f
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
lea edx, [eax + ecx*2]
cmp esi, edx
jbe 0x402f6f
call fcn.0041162d
push esi
lea eax, [esp + 0x5c]
push eax
push edi
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
call fcn.00404760
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x12], 1
jne 0x402fb6
cmp dword [esp + 0x6c], 0
je 0x402fb6
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x58]
push ecx
call fcn.00403790
lea edi, [esp + 0x58]
call fcn.00403a40
mov esi, dword [esp + 0x14]
mov byte [esp + 0x12], 0
cmp byte [esp + 0x13], 1
jne 0x40302f
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], eax
mov word [esp + 0x78], ax
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x78]
push ecx
lea eax, [esp + 0x78]
push eax
push edx
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x84]
mov byte [esp + 0xb0], 1
call fcn.00404760
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x74]
push ecx
call fcn.00403790
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x8c], 8
jb 0x40302b
mov edx, dword [esp + 0x78]
push edx
call fcn.00411642
add esp, 4
mov esi, dword [esp + 0x14]
add esi, 1
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
jb 0x402dc0
cmp dword [esp + 0x6c], 0
je 0x403055
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
call fcn.00403790
cmp dword [esp + 0x70], 8
jb 0x403069
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00411642
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004111ac
mov esp, ebp
pop ebp
ret