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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x8c], 0xfffffe86
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0x2231
mov byte [esp + 0x7f], 0x83
mov dword [esp + 0x78], 0x5b5c
mov dl, byte [esp + 0x7f]
xor dl, 0x93
mov byte [esp + 0x6b], dl
mov dword [esp + 0x70], 0x6174
mov esi, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
call fcn.00402c90
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, esp
mov dword [ecx], eax
call fcn.00402b50
sub esp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, 0xef3
mov dword [esp + 0x10], eax
jae 0x40282a
jmp 0x4027ae
jmp 0x4029e1
mov eax, dword [esp + 0x14]
xor eax, 0x756e
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
jmp 0x402a25
mov eax, dword [esp + 0x24]
add eax, 2
mov dword [esp + 0x24], eax
jmp 0x4029fd
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
jmp 0x402a48
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp eax, dword [ecx + 0x18]
jb 0x4028f0
jmp 0x402a0d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x78]
add eax, 0x18
add ecx, 0xffffa4a4
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
mov esi, 0x5b5b
sub esi, eax
mov dword [esp + 0x8c], 0xffffa818
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x78]
add edx, edi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x60]
mov edx, dword [edx + 0x64]
mov dword [esp + 0x64], edx
mov dword [esp + 0x44], esi
mov edx, dword [esp + 0x30]
mov word [esp + 0x88], 0
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x80]
mov esi, dword [esi + 0x20]
add edx, esi
and edi, 0x6b3e
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 0
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
add edx, dword [esi + 0x24]
mov dword [esp + 0x24], edx
mov bx, word [esp + 0x88]
mov word [esp + 0x88], bx
mov dword [esp + 0x1c], ecx
jmp 0x402814
mov byte [esp + 0x8b], 0x1b
mov dword [esp + 0x54], 0
jmp 0x402a25
mov eax, 0x5b5c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x78]
add ecx, dword [esi + edx*4]
sub eax, edi
add ebx, 0xffffa4a4
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x48], eax
jmp 0x402a48
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
not eax
not ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
jmp 0x402a6d
cmp byte [esp + 0x6b], 0x93
je 0x402b2e
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov bl, byte [esi + edx]
not eax
not ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
movsx eax, bl
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
movsx ecx, byte [edx + ecx]
cmp eax, ecx
sete bl
and bl, 1
movzx eax, bl
mov ecx, dword [esp + 0x78]
add ecx, 0xffffa4a4
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
movsx eax, byte [eax + edx]
cmp eax, ecx
je 0x4027a9
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x8c], 0xfffff9b3
movsx eax, byte [eax + ecx]
cmp eax, 0
je 0x4027a9
jmp 0x402b2e
mov eax, 0x5b5c
mov byte [esp + 0x8b], 0x20
sub eax, dword [esp + 0x78]
cmp dword [esp + 0x6c], eax
jne 0x402a60
jmp 0x4027f7
mov eax, dword [esp + 0x1c]
add eax, 1
mov dword [esp + 0x1c], eax
jmp 0x402814
mov eax, dword [esp + 0x78]
xor eax, 0xffffa4a3
cmp dword [esp + 0x44], eax
je 0x402aba
jmp 0x4027ae
mov eax, dword [esp + 0x54]
mov cx, word [esp + 0x88]
add cx, 0xabc4
mov word [esp + 0x88], cx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
add ecx, 0xffffa4c4
cmp eax, ecx
jb 0x40294a
jmp 0x4029e1
mov eax, dword [esp + 0x24]
movzx eax, word [eax]
mov dword [esp + 0x44], eax
jmp 0x402a0d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
xor ecx, 0x5b5d
add eax, ecx
mov ecx, dword [esp + 0x78]
add ecx, 0xffffb431
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], ecx
mov dx, word [esp + 0x88]
mov si, word [esp + 0x88]
mov eax, dword [esp + 0x40]
imul dx, si
mov word [esp + 0x88], dx
cmp eax, 0x27d7
jbe 0x402807
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
xor edx, edx
mov esi, 0x9b4e
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
add eax, eax
adc ecx, ecx
mov edx, dword [esp + 0x90]
mov esi, dword [esp + 0x94]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
xor edx, 0x3697
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub edx, eax
sbb esi, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
jb 0x4028db
jmp 0x402955
mov eax, 0x5b5c
sub eax, dword [esp + 0x78]
cmp dword [esp + 0x6c], eax
je 0x4027a9
jmp 0x402925