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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x785b
mov word [esp + 0x64], 0x5df2
mov dword [esp + 0x60], 0x4c0
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
xor edx, 0x7842
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
call fcn.00402390
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
xor ecx, 0x3b7b
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x14]
sub ecx, edi
mov ebx, dword [esp + 0x18]
sbb edx, ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jb 0x402276
jmp 0x40222e
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x40219a
mov eax, dword [esp + 0x30]
add eax, 0xfffffff8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ax, word [esp + 0x64]
xor ax, 0x307a
mov ecx, dword [esp + 0x30]
mov dx, word [esp + 0x64]
add dx, 0xee6d
mov dword [esp + 0x40], ecx
mov word [esp + 0x58], ax
mov ax, word [esp + 0x58]
mov si, word [esp + 0x76]
mov word [esp + 0x76], si
mov dword [esp + 0x38], 0
cmp ax, dx
jne 0x4022cc
jmp 0x40219a
mov eax, dword [esp + 0x28]
mov cx, word [eax]
shr cx, 1
movzx eax, cx
mov dx, word [esp + 0x64]
mov esi, dword [esp + 0x60]
add esi, 0xfffffb40
xor dx, 0x5df2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], esi
cmp cx, dx
je 0x4021a8
jmp 0x4022ec
test byte [esp + 0x5b], 1
jne 0x402183
jmp 0x4021a8
mov eax, dword [esp + 0xc]
imul ecx, eax, 0x3f19
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0x14
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
cmp ecx, 0
setne dl
and dl, 1
mov byte [esp + 0x37], dl
mov esi, dword [esp + 0x54]
mov esi, dword [esi]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x38], 0
cmp esi, edi
je 0x40219a
imul ax, word [esp + 0x76], 0x5e3f
mov word [esp + 0x76], ax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
add ecx, 0x24
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
add ecx, 0x10
mov dword [esp + 0x44], ecx
mov dl, byte [esp + 0x37]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
cmp dword [ecx], esi
sete dh
and dl, dh
test dl, 1
jne 0x40218f
jmp 0x4021ea
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], 0
cmp eax, ecx
je 0x40219a
jmp 0x402276
mov ax, 0x5e12
mov cx, 0x5df2
mov dx, word [esp + 0x64]
mov si, word [esp + 0x64]
add si, 0xa1cd
mov di, word [esp + 0x64]
mov ebx, dword [esp + 0xc]
and ebx, 0x6c35
sub cx, di
mov edi, dword [esp + 0x2c]
sub ax, dx
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x24]
mov dx, word [ebx + edi*2]
mov bx, dx
add bx, si
mov esi, dword [esp + 0x1c]
mov si, word [esi + edi*2]
mov word [esp + 2], ax
mov ax, dx
mov word [esp], cx
mov cx, word [esp + 2]
add ax, cx
cmp bx, 0x1a
cmovb dx, ax
cmp si, dx
sete al
and al, 1
mov byte [esp + 0x5b], al
mov eax, dword [esp + 0x3c]
add edi, 1
cmp edi, eax
setb al
mov ah, byte [esp + 0x5b]
mov cx, word [esp]
cmp dx, cx
setne cl
and ah, cl
and ah, al
mov dword [esp + 0x2c], edi
test ah, 1
jne 0x4022ec
jmp 0x40221e