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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [esp + 0x83], 0
mov dword [esp + 0x6c], 0x5798
mov dword [esp + 0x28], 0x347e
mov edx, dword [esp + 0x74]
mov dword [esp + 0x5c], 0x4a0a
mov dword [esp + 0x34], eax
mov si, word [esp + 0x80]
mov dword [esp + 0x68], ecx
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x1c], edx
mov word [esp + 0x1a], si
call fcn.00418d20
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
cmp eax, 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jne 0x419046
mov al, byte [esp + 0x83]
and al, 1
mov byte [esp + 0x2f], al
jmp 0x4192b3
mov eax, 0xa7d8
sub eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
add ecx, 0xffffd128
mov dword [esp + 0x24], eax
cmp ecx, dword [esp + 0x24]
ja 0x419046
mov eax, dword [esp + 0x34]
mov cx, word [esp + 0x1a]
mov word [esp + 0x80], cx
mov edx, dword [esp + 0x10]
and edx, 0x605b
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0
cmp eax, 0
jne 0x419099
mov byte [esp + 0x2f], 1
jmp 0x4192b3
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xa0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
add eax, 0xffffa868
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0xa4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x50]
mov dx, word [esp + 0x1a]
and dx, 0x41f4
mov word [esp + 0x80], dx
cmp ecx, eax
jne 0x4190fc
mov al, byte [esp + 0x83]
neg al
and al, 1
mov byte [esp + 0x2f], al
jmp 0x4192b3
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
xor eax, 0x5798
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
add ecx, 0xffffa868
cmp dword [esi + 4], ecx
seta bl
and bl, 1
movzx ecx, bl
mov di, word [esp + 0x1a]
and di, 0x427b
mov word [esp + 0x80], di
cmp edx, 0
setg bl
and bl, 1
movzx edx, bl
and ecx, edx
cmp ecx, eax
je 0x419280
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
xor ecx, 0x579a
mov dx, word [esp + 0x1a]
mov word [esp + 0x80], dx
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x60]
add eax, 8
mov word [esp + 0x80], 0x605d
mov esi, dword [esp + 0x6c]
add esi, 0xffffa870
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
sub eax, esi
xor edx, edx
div ecx
mov dword [esp + 0x64], eax
mov word [esp + 0x3a], 0xd14
cmp word [esp + 0x3a], 0x4518
je 0x4191a8
mov eax, dword [esp + 0x64]
mov ecx, eax
add ecx, 0xffffffff
mov dword [esp + 0x64], ecx
cmp eax, 0
je 0x41923d
mov eax, dword [esp + 0x6c]
xor eax, 0x94
mov ecx, dword [esp + 0x58]
movzx ecx, word [ecx]
mov dl, al
mov dword [esp + 0xc], ecx
mov cl, dl
mov eax, dword [esp + 0xc]
shr eax, cl
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
movzx eax, word [eax]
and eax, 0xfff
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
sub eax, 3
mov dword [esp + 8], eax
jne 0x419229
jmp 0x41920b
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x44]
add eax, dword [esp + 0x68]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
add ecx, dword [esp + 0x34]
mov dword [eax], ecx
jmp 0x41922b
jmp 0x41922b
jmp 0x41922d
mov eax, dword [esp + 0x58]
add eax, 2
mov dword [esp + 0x58], eax
jmp 0x4191a8
mov al, byte [esp + 0x73]
mov cl, 0xf6
mul cl
mov edx, dword [esp + 0x60]
mov byte [esp + 0x73], al
mov edx, dword [edx + 4]
mov esi, dword [esp + 0x50]
sub esi, edx
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x60]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x5c], 0x283e
je 0x419280
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
jmp 0x419108
mov eax, 0x728
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], 0x9cb
cmp eax, ecx
je 0x419046
mov eax, 0x6957
mov ecx, dword [esp + 0x4c]
sub eax, dword [esp + 0x6c]
cmp ecx, eax
ja 0x41908f
mov byte [esp + 0x2f], 1
mov al, byte [esp + 0x2f]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret