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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
add esp, 0xffffff50
mov eax, dword [ebp + 8]
mov cx, 0x99d7
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0x7681
mov word [esp + 0x88], 0x5dd3
mov dx, word [esp + 0x8a]
mov byte [esp + 0x87], 0xbc
mov word [esp + 0x8a], 0x4ce1
mov dword [esp + 0x80], 0x7394
mov byte [esp + 0x75], 0x38
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x2c], 0x1053
mov dword [esp + 0x78], 0x6f3e
sub cx, word [esp + 0x88]
mov word [esp + 0x76], cx
mov cx, word [esp + 0x76]
mov dword [esp + 0x28], eax
mov word [esp + 0x1a], cx
mov word [esp + 0x18], dx
call fcn.00402ca0
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
mov esi, esp
mov dword [esi], eax
call fcn.00402a20
sub esp, 4
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
add eax, 0x18
mov bl, byte [esp + 0x9f]
mov dword [esp + 0x30], eax
mov bh, 0x6e
mov al, bl
mul bh
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x30]
mov byte [esp + 0x9f], al
mov al, bl
sub al, 0xc4
mov byte [esp + 0x9f], al
add esi, dword [edi + 0x60]
mov cx, word [esp + 0x88]
add cx, 0xd87
mov dx, word [esp + 0x1a]
cmp dx, cx
mov byte [esp + 0x17], bl
mov dword [esp + 0x10], esi
je 0x4029b5
jmp 0x4028be
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x80]
xor ecx, 0x73b4
cmp eax, ecx
jae 0x40287a
mov eax, 0x7394
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov bl, byte [ecx + edx]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
movsx esi, bl
movsx ecx, byte [ecx + edx]
cmp esi, ecx
sete bl
and bl, 1
movzx ecx, bl
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x6c]
sub eax, dword [esp + 0x80]
mov edx, dword [esp + 0x54]
movsx ecx, byte [edx + ecx]
cmp ecx, eax
je 0x402a0f
jmp 0x40277a
mov eax, dword [esp + 0x44]
movzx eax, word [eax]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
or eax, eax
or ecx, ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
jmp 0x4029ec
mov eax, dword [esp + 0x80]
xor eax, 0x2daa
cmp eax, dword [esp + 0x2c]
jbe 0x4029cb
jmp 0x402812
mov eax, 0x7395
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x50]
sub eax, ecx
add edx, eax
mov dword [esp + 0x50], edx
jmp 0x4029cb
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x44]
add eax, 2
mov dword [esp + 0x44], eax
mov cx, word [esp + 0x18]
sub cx, cx
mov word [esp + 0x8a], cx
jmp 0x40272a
mov eax, 0x9b5
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
or ecx, ecx
or edx, edx
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x28]
mov bl, byte [ecx + esi]
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x4b], bl
cmp eax, ecx
jbe 0x402867
jmp 0x402a0a
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x70], eax
mov dl, byte [esp + 0x17]
and dl, 0x64
mov eax, dword [esp + 0x64]
mov byte [esp + 0x9f], dl
add eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dl, byte [esp + 0x17]
and dl, 0xe8
mov byte [esp + 0x9f], dl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
jmp 0x4029de
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x6c]
add eax, 0xffff8c6d
add ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x402678
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
add edx, dword [ecx + eax*4]
mov dword [esp + 0x54], edx
mov si, word [esp + 0x18]
add si, 0x5476
mov word [esp + 0x8a], si
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
jmp 0x402678
movsx eax, byte [esp + 0x4b]
cmp eax, 0
je 0x402a0f
jmp 0x40296b
mov eax, dword [esp + 0x60]
mov cl, byte [esp + 0x87]
mov dword [esp + 0x8c], 0xffffad1d
xor cl, 0x6b
mov dword [esp + 0x40], eax
mov dl, byte [esp + 0x75]
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
cmp cl, dl
je 0x40296b
jmp 0x40293e
mov eax, 0x7393
sub eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x64]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dl, byte [esp + 0x17]
xor dl, 0xff
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
mov byte [esp + 0x9f], dl
add ecx, eax
mov eax, dword [esp + 0x80]
xor eax, 0x7394
mov dword [esp + 0x20], ecx
mov dl, byte [esp + 0x17]
add dl, dl
mov byte [esp + 0x9f], dl
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x34]
add ecx, dword [esi + 0x24]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], eax
jmp 0x4029cb
mov dword [esp + 0x3c], 0
jmp 0x4029de
movsd xmm0, qword [esp + 0x90]
mov eax, dword [esp + 0x80]
xor eax, 0x7394
movsd qword [esp + 0x90], xmm0
cmp dword [esp + 0x40], eax
jne 0x4026df
jmp 0x402747
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x39b6
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
add ecx, 0xffffa2a0
adc edx, 0xffffffff
mov dword [esp + 0x7c], eax
xor eax, eax
mov esi, 0x39b5
sub esi, ecx
sbb eax, edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
jb 0x40272a
jmp 0x4029b5
mov eax, 0x7394
mov ecx, dword [esp + 0x7c]
sub eax, dword [esp + 0x80]
cmp ecx, eax
je 0x402a0f
jmp 0x402a0a
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
cmp dword [esp + 0x50], eax
jb 0x40282d
jmp 0x4029ec
mov eax, dword [esp + 0x3c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x80]
xor ecx, 0xffff8c6b
cmp eax, ecx
je 0x402931
jmp 0x4027bf
jmp 0x40270f
jmp 0x40287a