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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov word [esp + 0x86], 0x7b45
mov byte [esp + 0x7d], 0xd8
mov dword [esp + 0x78], 0x666
mov edx, 0x666
mov dword [esp + 0x74], 0x1f1f
mov byte [esp + 0x6b], 0x97
movzx esi, word [esp + 0x86]
mov di, si
mov ebx, 0xffffd5e9
sub ebx, esi
mov word [esp + 0x42], bx
mov bl, byte [esp + 0x7d]
mov bh, bl
dec bh
mov byte [esp + 0x2b], bh
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x86]
xor eax, 0x6405
not esi
mov word [esp + 0x7e], si
mov word [esp + 0x4c], ax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x54], esi
mov dword [esp + 0x6c], ecx
mov byte [esp + 0x23], bl
mov dword [esp + 0x1c], edx
mov word [esp + 0x1a], ax
mov word [esp + 0x18], di
call fcn.004033c0
mov dword [esp + 0x60], eax
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov di, word [esp + 0x1a]
cmp di, 0x2540
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jbe 0x403154
jmp 0x403275
cmp dword [esp + 0x54], 0
jne 0x403163
jmp 0x4032c1
mov eax, dword [esp + 0x78]
xor eax, 0x607
mov cx, word [esp + 0x64]
mov edx, dword [esp + 0x78]
add edx, 0xfffff9db
movzx esi, cx
add eax, esi
sub eax, edx
mov cx, ax
mov word [esp + 0x64], cx
jmp 0x4031d8
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
jmp 0x403343
mov eax, 0x6c0
movzx ecx, word [esp + 0x64]
sub eax, dword [esp + 0x78]
cmp ecx, eax
jle 0x40302a
jmp 0x4031d8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
mov dx, word [esp + 0x18]
sub dx, 0x76c6
mov word [esp + 0x7e], dx
mov dx, word [eax + ecx*2]
mov word [esp + 0x64], dx
movzx eax, word [esp + 0x64]
cmp eax, 0x41
jge 0x40329a
jmp 0x4031d8
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x70]
jne 0x4032db
jmp 0x4030ef
mov eax, dword [esp + 0x38]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, byte [esp + 0x23]
sub al, al
mov byte [esp + 0x93], al
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x78]
add edx, 0xfffff99a
cmp ecx, edx
je 0x403152
jmp 0x403253
mov dword [esp + 0x38], 0
jmp 0x403343
mov eax, dword [esp + 0x78]
add eax, 0xfffff99c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, edx
xor edx, edx
mov esi, dword [esp + 0xc]
div esi
cmp ecx, eax
jb 0x40307a
jmp 0x403142
mov eax, 0x667
sub eax, dword [esp + 0x78]
add eax, dword [esp + 0x2c]
mov cx, word [esp + 0x18]
mov word [esp + 0x7e], cx
mov dword [esp + 0x2c], eax
jmp 0x4030fc
cmp dword [esp + 0x50], 0
jne 0x403243
jmp 0x40335b
jmp 0x403142
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
jmp 0x4030ad
mov eax, dword [esp + 0x3c]
mov cx, word [esp + 0x42]
mov dx, word [esp + 0x86]
xor dx, 0xbd0
mov dword [esp + 0x34], eax
cmp dx, cx
jne 0x403056
jmp 0x403243
mov al, 0xfd
mov cl, byte [esp + 0x7d]
add cl, 0x33
mov dl, byte [esp + 0x7d]
mov byte [esp + 0x93], 0xca
sub al, dl
mov byte [esp + 0x67], cl
cmp al, byte [esp + 0x67]
jb 0x40318b
jmp 0x403125
mov al, 0xa8
sub al, byte [esp + 0x7d]
cmp byte [esp + 0x4f], al
jae 0x40318b
jmp 0x403275
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x18]
cmp eax, dword [esp + 0x54]
je 0x40301a
jmp 0x4032c1
mov eax, 0x3a57
mov ecx, dword [esp + 0x14]
add ecx, ecx
mov edx, dword [esp + 0x10]
adc edx, edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x6c]
mov si, word [edx + ecx*2]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov edx, dword [esp + 0x78]
add edx, 0xfffff99a
mov dword [esp + 0x80], eax
movzx eax, si
movzx edi, word [esp + 0x64]
cmp eax, edi
sete bl
and bl, 1
movzx eax, bl
mov dword [esp + 0x50], eax
movzx eax, word [esp + 0x64]
cmp eax, edx
je 0x403152
jmp 0x4030cb
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x38], eax
jmp 0x403343
jmp 0x40318b
mov eax, dword [esp + 0x78]
add eax, 0x77c6
mov dword [esp + 0x30], 0x647f
cmp dword [esp + 0x30], eax
jne 0x403063
jmp 0x4032db
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x88], ecx
jmp 0x4030ad
mov ax, word [esp + 0x86]
mov cx, word [esp + 0x86]
add ax, 0xc511
xor cx, 0x2b23
mov word [esp + 0x68], ax
cmp cx, word [esp + 0x68]
jbe 0x403325
jmp 0x403258
mov eax, dword [esp + 0x78]
add eax, 0xfffff99a
mov dword [esp + 0x50], 0
mov dword [esp + 0x2c], eax
jmp 0x4030fc
mov eax, dword [esp + 0x5c]
mov ecx, eax
add ecx, 0xfffffff8
mov dword [esp + 0x3c], ecx
movzx eax, word [eax + 0x24]
mov dl, byte [esp + 0x7d]
xor dl, 0x85
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x88], 0xffff9267
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dh, byte [esp + 0x2b]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x58], eax
cmp dh, dl
je 0x4032c1
jmp 0x4031c2
mov eax, esp
mov dword [eax + 4], 0
mov dword [eax], 0
call fcn.00401e70
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, byte [esp + 0x6b]
mov cl, byte [esp + 0x7d]
add cl, 0xcd
cmp al, cl
ja 0x403253
jmp 0x4030bd
mov eax, 0x194f
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
add edx, 0x29fc
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov bl, byte [esp + 0x7d]
mov di, word [esp + 0x18]
or di, 0x524d
mov word [esp + 0x7e], di
sub eax, esi
add bl, 0xf7
mov dword [esp + 0x48], ecx
mov byte [esp + 0x41], bl
mov bl, byte [esp + 0x41]
mov byte [esp + 0x4f], bl
cmp edx, eax
je 0x403163
jmp 0x4031b1