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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427580
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x435300]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x435300]
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 0x402e07
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 0x402e05
cmp ecx, dword [esp + 0x18]
jbe 0x402de6
call fcn.0041101d
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x402df3
call fcn.0041101d
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push esi
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.004038e0
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 0x4030f9
lea ebx, [edi + 4]
mov dword [esp + 0x28], ebx
jmp 0x402e58
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
cmp dword [edi + 0x14], esi
ja 0x402e62
call fcn.0041052b
cmp dword [edi + 0x18], 8
jb 0x402e6c
mov eax, dword [ebx]
jmp 0x402e6e
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 0x402ed7
movzx eax, di
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call fcn.00404970
cmp eax, 0xffffffff
je 0x402ed7
add esi, 1
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
jae 0x402ed0
mov edi, dword [esp + 0x34]
cmp dword [edi + 0x14], esi
ja 0x402ebc
call fcn.0041052b
cmp dword [edi + 0x18], 8
mov eax, dword [esp + 0x28]
jb 0x402ec8
mov eax, dword [eax]
movzx edi, word [eax + esi*2]
mov bl, 1
jmp 0x402ed2
xor bl, bl
mov byte [esp + 0x11], 1
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 0x14], 0
je 0x402f29
cmp byte [esp + 0x11], 0
jne 0x402f29
movzx edx, di
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edx
call fcn.00404970
cmp eax, 0xffffffff
je 0x402f29
cmp byte [esp + 0x10], 0
jne 0x402f13
movzx ecx, di
mov byte [esp + 0x10], 1
mov dword [esp + 0x18], ecx
jmp 0x402f27
cmp word [esp + 0x18], di
jne 0x402f29
mov byte [esp + 0x10], 0
mov dword [esp + 0x18], 0
xor bl, bl
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x14], 0
je 0x402f65
cmp byte [esp + 0x11], 0
jne 0x402f65
cmp byte [esp + 0x10], 0
jne 0x402f65
movzx edx, di
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edx
call fcn.00404970
cmp eax, 0xffffffff
je 0x402f65
cmp dword [esp + 0x6c], 0
je 0x402f63
mov byte [esp + 0x12], 1
xor bl, bl
mov ecx, dword [esp + 0x44]
cmp dword [ecx + 0x14], 0
mov byte [esp + 0x13], 0
je 0x402fb2
cmp byte [esp + 0x11], 0
jne 0x402fb2
cmp byte [esp + 0x10], 0
jne 0x402fb2
movzx edx, di
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edx
call fcn.00404970
cmp eax, 0xffffffff
je 0x402fb2
cmp dword [esp + 0x6c], 0
je 0x402fa4
mov byte [esp + 0x12], 1
movzx ecx, di
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x13], 1
jmp 0x403018
cmp bl, 1
jne 0x403018
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
mov esi, eax
jae 0x402fc8
lea esi, [esp + 0x5c]
mov edx, dword [esp + 0x6c]
lea esi, [esi + edx*2]
test esi, esi
je 0x402ffa
mov edx, dword [esp + 0x70]
cmp edx, 8
mov ecx, eax
jae 0x402fe2
lea ecx, [esp + 0x5c]
cmp ecx, esi
ja 0x402ffa
cmp edx, 8
jae 0x402fef
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
lea edx, [eax + ecx*2]
cmp esi, edx
jbe 0x402fff
call fcn.0041101d
push esi
lea eax, [esp + 0x5c]
push eax
push edi
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
call fcn.004047d0
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x12], 1
jne 0x403046
cmp dword [esp + 0x6c], 0
je 0x403046
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x58]
push ecx
call fcn.00403830
lea edi, [esp + 0x58]
call fcn.00403ae0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x12], 0
cmp byte [esp + 0x13], 1
jne 0x4030bf
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.004047d0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x74]
push ecx
call fcn.00403830
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x8c], 8
jb 0x4030bb
mov edx, dword [esp + 0x78]
push edx
call fcn.00411032
add esp, 4
mov esi, dword [esp + 0x14]
add esi, 1
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
jb 0x402e50
cmp dword [esp + 0x6c], 0
je 0x4030e5
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
call fcn.00403830
cmp dword [esp + 0x70], 8
jb 0x4030f9
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00411032
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.00410b9c
mov esp, ebp
pop ebp
ret