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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
mov eax, dword [ebp + 8]
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0x7e47
mov word [esp + 0xce], 0x142b
mov byte [esp + 0xcd], 0xa5
mov dword [esp + 0xc8], 0xd2a
mov cl, byte [esp + 0xd1]
mov dl, cl
or dl, 0x4c
mov byte [esp + 0xd1], dl
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0xd1a
movzx esi, word [esp + 0xce]
mov di, si
mov ebx, 0x5ef9
sub ebx, esi
mov dx, bx
mov word [esp + 0x46], dx
mov dx, word [esp + 0xce]
xor dx, 0x4205
mov word [esp + 0x52], dx
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0x4aa7
mov ch, byte [esp + 0xcd]
mov dl, 0x98
sub dl, ch
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xdc]
mov byte [esp + 0x6b], dl
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], eax
mov byte [esp + 0x2f], cl
mov dword [esp + 0x28], esi
mov word [esp + 0x26], di
mov dword [esp + 0x20], ebx
call fcn.00402d30
mov dword [esp + 0x4c], eax
mov edx, esp
mov dword [edx], eax
call fcn.00402af0
sub esp, 4
mov dword [esp + 0xbc], eax
mov edx, eax
add edx, 0x18
mov esi, dword [esp + 0xd4]
mov ebx, esi
xor ebx, 0x1329
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x64], edx
mov eax, dword [eax + 0x78]
mov edx, dword [esp + 0x4c]
add edx, eax
mov dword [esp + 0x90], edx
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x40], eax
mov cl, byte [esp + 0x2f]
and cl, 0x5d
mov eax, dword [esp + 0xc8]
mov byte [esp + 0xd1], cl
add eax, 0xfffff2d5
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x28]
xor ebx, 0x40a8
mov di, bx
mov word [esp + 0xd2], di
mov edx, dword [edx + 0x20]
add eax, edx
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xdc], ebx
mov edi, dword [esp + 0x20]
mov dword [esp + 0xd8], edi
add edx, dword [eax + 0x24]
mov dword [esp + 0xa8], edx
mov eax, dword [esp + 0xc8]
xor eax, 0xd2a
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], esi
jmp 0x402a10
mov dword [esp + 0x74], 0
jmp 0x402951
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
movsx eax, byte [eax + ecx]
mov dx, word [esp + 0x52]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
movsx eax, byte [ecx + eax]
mov dword [esp + 0x6c], eax
cmp dx, 0x69c8
jae 0x4027c1
jmp 0x402755
jmp 0x4027a7
mov eax, 0xd2a
mov ecx, dword [esp + 0x94]
cmp ecx, dword [esp + 0x6c]
sete dl
and dl, 1
movzx ecx, dl
mov dword [esp + 0xb0], ecx
sub eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
movsx ecx, byte [ecx + esi]
cmp ecx, eax
je 0x402753
jmp 0x402992
mov eax, dword [esp + 0xa8]
movzx eax, word [eax]
mov dword [esp + 0xac], eax
jmp 0x4028a9
mov eax, dword [esp + 0xc8]
xor eax, 0xd2a
cmp dword [esp + 0xb0], eax
jne 0x402791
jmp 0x402a3e
mov eax, dword [esp + 0xc8]
mov cx, word [esp + 0x26]
mov word [esp + 0xd2], cx
xor eax, 0xd2b
add eax, dword [esp + 0x58]
mov dword [esp + 0x58], eax
jmp 0x4028d4
cmp dword [esp + 0xb0], 0
je 0x402753
jmp 0x4029d9
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa8], eax
mov ax, word [esp + 0xce]
add ax, 0xf817
cmp word [esp + 0x46], ax
jae 0x402a05
jmp 0x402a9c
mov eax, dword [esp + 0x4c]
mov dx, word [esp + 0x26]
mov cx, dx
or ecx, 0x6812
mov si, cx
mov ecx, dword [esp + 0x90]
mov word [esp + 0xd2], si
mov ecx, dword [ecx + 0x1c]
add eax, ecx
mov dword [esp + 0xc0], eax
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0xe0]
mov ebx, dword [esp + 0xe4]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov esi, 0xef4d
sub esi, edi
sbb ecx, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
sub eax, esi
sbb edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
jae 0x4028a9
jmp 0x4029de
mov eax, dword [esp + 0xb8]
cmp eax, dword [esp + 0xb4]
jb 0x4028ef
mov eax, dword [esp + 0xc8]
xor eax, 0xfffff2d5
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xd4], 0xffffe413
cmp ecx, eax
je 0x402715
jmp 0x402821
mov eax, dword [esp + 0xc8]
add eax, 0xfffff2f6
cmp dword [esp + 0x58], eax
jb 0x402722
jmp 0x4027a7
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
not edx
mov esi, dword [esp + 0x20]
not esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0xc4]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0xc8]
xor edx, 0xd2a
add ecx, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0x58], 0
mov di, word [esp + 0x26]
imul bx, di, 0x5c0a
mov word [esp + 0xd2], bx
jmp 0x4028d4
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
xor eax, 0x7f36
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x6574
xor edx, edx
mov esi, 0x6574
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
jb 0x402805
jmp 0x402a9c
mov eax, dword [esp + 0xc8]
xor eax, 0x16be
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0xc8]
add ecx, 0x47b5
mov edx, dword [esp + 0x58]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], edx
cmp ecx, eax
jae 0x402a82
jmp 0x4027a7
jmp 0x4027c1
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x60]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
mov byte [esp + 0xd1], 0x10
mov dword [esp + 0x74], eax
jmp 0x402951
mov eax, dword [esp + 0x54]
add eax, 1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x90]
mov cl, byte [esp + 0x6b]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xb4], eax
cmp cl, 0xc4
jne 0x402899
jmp 0x402821
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xa8]
xor eax, 0x287a
mov dword [esp + 0x70], 0x6b21
mov edx, dword [esp + 0x70]
add ecx, 2
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
imul esi, ecx, 0x3b0
mov dword [esp + 0xd4], esi
cmp edx, eax
ja 0x4027fa
jmp 0x402951
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x48]
movsx eax, byte [ecx + eax]
cmp eax, 0
je 0x402753
jmp 0x402aaa
mov eax, dword [esp + 0x74]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
xor eax, 0x2272
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x9c]
sub eax, edx
sbb ecx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
jb 0x402821
jmp 0x4027e7