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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea esi, [0x406120]
mov edi, 0x80
lea ebx, [esp + 0x84]
mov dword [esp + 0x4c], eax
lea eax, [0x4061ad]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x118], 0x1087
mov dword [esp + 0x104], 0x3eab
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
adc eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, 0x6717
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
sbb ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x114], 0
mov dword [esp + 0x110], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov byte [esp + 0x123], 0xb6
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x60], edx
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], 0x80
mov dword [esp + 0x20], edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x104]
mov ecx, eax
add ecx, 0xffffc175
mov dword [esp + 0x5c], ecx
mov cl, byte [esp + 0x123]
mov ch, cl
xor ch, 0xe3
mov edx, dword [esp + 0x104]
mov byte [esp + 0x123], ch
xor edx, 0x3eab
mov dword [esp + 0x54], edx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1b], cl
mov ax, word [esp + 0x10e]
imul ax, word [esp + 0x10e]
mov ecx, dword [esp + 0x104]
mov word [esp + 0x10e], ax
mov edx, dword [esp + 0x54]
xor ecx, 0x3e8b
cmp edx, ecx
jae 0x4020c4
mov eax, dword [esp + 0x1c]
imul ecx, eax, 0x55b8
mov dword [esp + 0x108], ecx
mov ecx, dword [esp + 0x54]
mov ecx, dword [esp + ecx*4 + 0x84]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x74]
imul edx, eax, 0x52c2
mov dword [esp + 0x108], edx
mov dword [esp + 0x58], ecx
jmp 0x402123
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
xor edi, edi
mov ebx, 0x3e14
sub ebx, eax
sbb edi, ecx
sub edx, ebx
sbb esi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
jb 0x402123
jmp 0x4020ff
mov ax, word [esp + 0x10e]
xor ax, word [esp + 0x10e]
mov word [esp + 0x10e], ax
mov ecx, dword [esp + 0x5c]
add ecx, dword [esp + 0x58]
mov dword [esp + 0x58], ecx
mov al, byte [esp + 0x1b]
xor al, 0xb4
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov byte [esp + 0x123], al
cmp ecx, edx
jae 0x402197
mov eax, dword [esp + 0x104]
xor eax, 0x3eab
mov cl, byte [esp + 0x1b]
or cl, 0xa
mov edx, dword [esp + 0x58]
and edx, 0x1f
mov byte [esp + 0x123], cl
mov esi, dword [esp + 0x60]
add eax, edx
mov cl, byte [esi + eax]
mov byte [esp + 0x67], cl
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x68]
movzx esi, byte [esp + 0x67]
movzx eax, byte [edx + eax]
sub eax, esi
mov cl, al
mov byte [esp + 0x6f], cl
mov cl, byte [esp + 0x6f]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
mov byte [eax + edx], cl
jmp 0x4020ce
jmp 0x402199
mov eax, dword [esp + 0x104]
xor eax, 0x3eaa
add eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
jmp 0x40205f