Function at 0x404ce0
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 + 0x90], 0x16c6
mov dword [esp + 0x78], 0x7eeb
movzx edx, word [esp + 0x90]
mov si, dx
mov edi, 0x2b21
sub edi, edx
mov bx, di
mov word [esp + 0x46], bx
mov dword [esp + 0x50], eax
mov word [esp + 0x92], 0xc7a3
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x78]
mov ecx, 0x7eec
sub ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov edi, ecx
add edi, 0xffffbced
mov ebx, edx
adc ebx, 0xffffffff
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x80], 0xfffff2f5
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
xor eax, 0x4bee
mov edi, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
mov dword [esp], edi
mov word [esp + 0x32], si
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.00419be0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
add eax, 0x18
add eax, 0x60
add eax, 8
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
mov cl, byte [esp + 0x7f]
mov eax, dword [eax + 4]
mov ch, cl
xor ch, 0xff
mov byte [esp + 0x7f], ch
cmp eax, 0
mov byte [esp + 0x27], cl
jbe 0x4050de
mov eax, dword [esp + 0x48]
mov cl, byte [esp + 0x27]
xor cl, 0x47
mov edx, dword [esp + 0x54]
mov byte [esp + 0x7f], cl
add eax, dword [edx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x78]
add ecx, 0xffff8115
cmp eax, ecx
je 0x4050dc
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 0x48]
mov edx, esp
mov dword [edx], eax
call ecx
sub esp, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
imul edx, ecx, 0x1038
mov dword [esp + 0x8c], edx
cmp eax, 0
jne 0x404e6e
jmp 0x4050dc
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x8c], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x78]
add ecx, 0xffff8115
cmp eax, ecx
je 0x404eae
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add eax, dword [ecx]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x10]
add eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
jmp 0x404ed7
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add eax, dword [ecx + 0x10]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x10]
add eax, dword [esp + 0x48]
mov dl, byte [esp + 0x27]
xor dl, 0xff
mov byte [esp + 0x7f], dl
mov dword [esp + 0x3c], eax
jmp 0x404ed9
mov eax, dword [esp + 0x64]
cmp dword [eax], 0
je 0x405086
mov eax, 0x80007eeb
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x78]
xor edx, 0x7eeb
sub eax, ecx
mov dword [esp + 0x6c], 0
mov si, word [esp + 0x32]
and si, 0x6bd6
mov ecx, dword [esp + 0x64]
mov word [esp + 0x92], si
and eax, dword [ecx]
cmp eax, edx
je 0x404f5d
mov eax, dword [esp + 0x78]
add eax, 0x8114
mov ecx, dword [esp + 0x64]
and eax, dword [ecx]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
mov esi, esp
mov dword [esi + 4], eax
mov dword [esi], ecx
call edx
sub esp, 8
lea ecx, [0x401217]
mov dword [esp + 0x6c], eax
mov dword [esp], ecx
call fcn.0041b9e0
mov dword [esp + 0x20], eax
jmp 0x404fee
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, esp
mov dword [eax], 0x401217
call fcn.0041b9e0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
add edx, 0xffff8771
mov si, word [esp + 0x46]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x38]
add edi, 2
mov ebx, esp
mov dword [ebx + 4], edi
mov dword [ebx], edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x1a], si
call ecx
sub esp, 8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
add eax, 0x5d38
mov ecx, dword [esp + 0x2c]
adc ecx, 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov si, word [esp + 0x1a]
cmp si, 0x6747
ja 0x4050c8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x6c], eax
mov eax, 0x7eeb
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x96c9
sub eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x3c]
mov dword [edx], ecx
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], eax
jne 0x40504d
lea eax, [0x401217]
mov cx, word [esp + 0x32]
add cx, 0x322e
mov word [esp + 0x92], cx
mov dword [esp], eax
call fcn.0041b9e0
mov dword [esp + 0x68], 0
mov dword [esp + 0x14], eax
jmp 0x405086
jmp 0x40504f
mov word [esp + 0x92], 0x7565
mov eax, dword [esp + 0x64]
add eax, 4
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
add eax, 4
mov cx, word [esp + 0x32]
or cx, 0x43a3
mov word [esp + 0x92], cx
mov dword [esp + 0x3c], eax
jmp 0x404ed9
mov eax, 0x7eeb
mov ecx, dword [esp + 0x78]
mov edx, 0x26b4
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, esi
mul edx
mov edi, dword [esp + 0x2c]
imul ebx, edi, 0x26b4
add edx, ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x10]
sub edx, ecx
cmp eax, edx
jne 0x4050ca
jmp 0x4050dc
jmp 0x4050cc
mov eax, dword [esp + 0x4c]
add eax, 0x14
mov dword [esp + 0x4c], eax
jmp 0x404e1a
jmp 0x4050de
lea eax, [0x401217]
mov dword [esp], eax
call fcn.0041b9e0
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret