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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x9c], 0
imul eax, dword [esi + 0x18], 0x64
lea ecx, [esi + 0x24]
mov ebx, dword [eax + 0x514560]
mov eax, dword [edi]
and ebx, 0x86
mov dword [esp + 0x14], ebx
cmp dword [eax + 0x44], ecx
je 0x414563
cmp dword [eax + 0x64], ecx
jne 0x41456e
mov dword [esp + 0x9c], 1
movups xmm0, xmmword [esi + 0x38]
push dword [esp + 0xb4]
psrldq xmm0, 0xc
movd eax, xmm0
push 2
movzx ebp, byte [eax + 0x11]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x1c], ebp
push eax
push dword [esp + 0xb4]
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00416c40
mov ecx, dword [esp + 0xcc]
add esp, 0x1c
test cl, cl
je 0x414616
xor eax, eax
cmp byte [esp + 0x18], al
sete al
jmp 0x41461b
movzx eax, byte [esp + 0x18]
test eax, eax
je 0x414629
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esi + 0x18]
cmp eax, 0x140
jg 0x414898
je 0x4148a2
sub eax, 0x9b
je 0x414649
sub eax, 0x52
je 0x414692
push dword [esp + 0xb4]
mov esi, dword [esp + 0xac]
push ebp
push ecx
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push esi
call fcn.00415a60
mov ecx, eax
add esp, 0x28
test ecx, ecx
jns 0x41469d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x60
ret
push dword [esp + 0xb0]
push esi
call fcn.00416740
add esp, 8
cmp eax, 0x146
je 0x41488e
cmp eax, 0xf4
je 0x41488e
or edi, 0xffffffff
lea esi, [ecx - 1]
nop dword [eax]
cmp esi, 1
jl 0x414867
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x4c], eax
mov eax, ebx
sub eax, 2
je 0x41471b
sub eax, 2
je 0x41471b
movd xmm0, esi
cvtdq2pd xmm0, xmm0
push ebp
sub esp, 8
movsd qword [esp], xmm0
call fcn.00406d20
mov ecx, 0xed
lea ebx, [ecx - 0x52]
jmp 0x41472e
mov eax, esi
cdq
push ebp
push edx
push eax
call fcn.0040fdb0
mov ecx, 0x140
lea ebx, [ecx - 0x1e]
mov ebp, dword [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x74]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0xa0]
push dword [esp + 0xb4]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x94]
push eax
mov dword [esp + 0x80], ebp
lea eax, [esp + 0x20]
mov ebp, dword [esp + 0x18]
push ebp
push 1
push eax
push ecx
mov dword [esp + 0x98], edx
call fcn.0044eb00
mov eax, dword [esp + 0x9c]
push dword [esp + 0xcc]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push ebp
push 1
lea eax, [esp + 0x60]
mov dword [esp + 0x4c], ecx
push eax
push ebx
call fcn.0044eb00
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x70]
mov eax, dword [esp + 0x68]
mov ebx, 4
push dword [esp + 0xe4]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x78], ecx
mov cl, byte [esp + 0xe0]
test cl, cl
cmove eax, ebx
mov dword [esp + eax + 0x84], edx
xor eax, eax
test cl, cl
lea ecx, [esp + 0x7c]
cmovne eax, ebx
mov dword [esp + eax + 0x84], ecx
lea eax, [esp + 0x84]
push eax
push ebp
push 1
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0xec]
call fcn.0044eb00
add esp, 0x48
cmp byte [esp + 0xb0], 0
je 0x41485a
xor eax, eax
cmp byte [esp + 0x60], al
sete al
jmp 0x41485f
movzx eax, byte [esp + 0x60]
test eax, eax
jne 0x41487d
mov ebx, dword [esp + 0x14]
inc edi
inc esi
cmp edi, 1
jle 0x4146d0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x60
ret
sub esi, dword [esp + 0x9c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x60
ret
sub eax, 0x152
je 0x4148a2
sub eax, 1
push dword [esp + 0xb8]
push dword [esp + 0xb8]
push ecx
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push esi
push dword [esp + 0xd4]
push edi
call fcn.00415e00
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret