Function at 0x402a40
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], 0x1545
mov word [esp + 0xce], 0x7870
mov byte [esp + 0xcd], 0xc4
mov cx, word [esp + 0xd6]
mov dword [esp + 0xc8], 0x5a42
mov edx, 0x5a42
mov esi, dword [esp + 0xd8]
mov edi, dword [esp + 0xdc]
mov dword [esp + 0xac], 0x12dd
mov ebx, dword [esp + 0xe0]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0xd5]
and al, 1
mov byte [esp + 0xd5], al
add ebx, 0x29e7
mov eax, dword [esp + 0x30]
adc eax, 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], eax
mov dword [esp + 0x2c], edi
mov word [esp + 0x2a], cx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
call fcn.004030c0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa0]
mov edx, esp
mov dword [edx], eax
call fcn.00402fe0
sub esp, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, 0x18
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xd0], 0x34a5
add edx, dword [eax + 0x60]
mov dword [esp + 0xa4], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xc8]
xor eax, 0xffffa5bd
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov eax, dword [eax + 0x20]
add edx, eax
mov dword [esp + 0xa8], edx
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
add eax, dword [edx + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc8]
add eax, 0xffffa5be
mov dword [esp + 0x64], eax
jmp 0x402fa9
mov dword [esp + 0xb0], 0
jmp 0x402c25
mov al, 0xfd
sub al, byte [esp + 0xcd]
mov cl, byte [esp + 0xcd]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0xa0]
add cl, 0x77
mov edi, dword [esp + 0xa8]
mov byte [esp + 0xb7], cl
mov cl, byte [esp + 0xb7]
add esi, dword [edi + edx*4]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], 0
cmp al, cl
jne 0x402baf
jmp 0x402fc2
mov eax, 0x69eb
sub eax, dword [esp + 0xc8]
cmp eax, dword [esp + 0xac]
jb 0x402e42
jmp 0x402d73
mov eax, dword [esp + 0xc8]
xor eax, 0x5a62
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x20]
add edx, edx
mov esi, dword [esp + 0x2c]
adc esi, esi
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], esi
cmp ecx, eax
jb 0x402efb
jmp 0x402cee
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
xor eax, edx
xor ecx, esi
xor eax, 0x87a
or eax, ecx
mov dword [esp + 0x1c], eax
je 0x402e4c
jmp 0x402cbd
mov eax, dword [esp + 0x44]
movzx eax, word [eax]
mov dword [esp + 0x54], eax
jmp 0x402deb
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0x5751
mov al, 1
test al, al
jne 0x402c5f
jmp 0x402c07
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
mov eax, dword [esp + 0xc8]
xor eax, 0xffffa5bd
cmp dword [esp + 0x54], eax
je 0x402c07
jmp 0x402d73
mov ax, word [esp + 0xce]
xor ax, 0x417d
mov ecx, dword [esp + 0x24]
sub ecx, ecx
mov dword [esp + 0xd0], ecx
mov word [esp + 0xc6], 0x17b0
cmp word [esp + 0xc6], ax
jbe 0x402fc2
jmp 0x402d73
mov eax, dword [esp + 0x64]
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0xb80
mov dword [esp + 0xd0], 0xfffff1d7
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
inc eax
mov dword [esp + 0x94], eax
xor ecx, 0xc0c
or ecx, edx
mov dword [esp + 0x18], ecx
je 0x402c8c
jmp 0x402eeb
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx + 0x1c]
add eax, ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x54]
mov edx, 0x7d8b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, esi
mul edx
mov edi, dword [esp + 0x2c]
imul ebx, edi, 0x7d8b
add edx, ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + ecx*4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], eax
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0xa0]
mov byte [esp + 0xd5], 0xf9
add eax, dword [esp + 0x68]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x38], eax
jmp 0x402e20
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
xor eax, 0x3ffd
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
xor edx, edx
mov esi, 0x7d6b
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
jb 0x402e3b
jmp 0x402c9c
mov eax, dword [esp + 0x38]
mov cx, word [esp + 0x2a]
mov word [esp + 0xd6], cx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
jmp 0x402cee
jmp 0x402e4c
mov dword [esp + 0x38], 0
jmp 0x402e20
mov eax, dword [esp + 0x24]
add eax, 0x69a0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xc8]
xor ecx, 0x5a43
add eax, ecx
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x24]
and eax, eax
mov dword [esp + 0xd0], eax
jmp 0x402c25
mov eax, dword [esp + 0xc8]
add eax, 0xffffa5be
cmp dword [esp + 0x4c], eax
je 0x402e3b
jmp 0x402e40
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
xor edx, edx
mov esi, 0x372c
sub esi, eax
sbb edx, ecx
add eax, 0x5481
adc ecx, 0
mov edi, dword [esp + 0x44]
add edi, 2
mov dword [esp + 0x84], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], esi
xor edx, ecx
xor esi, eax
or esi, edx
mov dword [esp + 8], esi
jne 0x402f6d
jmp 0x402e40
mov eax, dword [esp + 0x94]
mov dword [esp + 0x64], eax
jmp 0x402fa9
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xb0]
movsx eax, byte [eax + ecx]
mov edx, dword [esp + 0x50]
movsx ecx, byte [edx + ecx]
sub ecx, eax
sete bl
movzx eax, bl
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x50]
mov di, word [esp + 0x2a]
mov si, di
not esi
movsx eax, byte [edx + eax]
mov word [esp + 0xd6], si
mov edx, dword [esp + 0x20]
or edx, 0x73f9
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], edx
cmp eax, 0
mov dword [esp + 4], ecx
je 0x402e3b
jmp 0x402f7d
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], eax
jmp 0x402d21
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xc8]
movsx eax, byte [eax + ecx]
xor edx, 0x5a42
cmp eax, edx
je 0x402e3b
jmp 0x402e8b
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x18]
cmp dword [esp + 0x64], eax
jb 0x402bbc
jmp 0x402deb
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc8]
xor ecx, 0x5a42
cmp eax, ecx
jne 0x402c8c
jmp 0x402e9f