Function at 0x413d10
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 + 0x20]
mov ebx, dword [eax + 0x50b418]
mov eax, dword [edi]
and ebx, 0x86
mov dword [esp + 0x14], ebx
cmp dword [eax + 0x40], ecx
je 0x413d53
cmp dword [eax + 0x60], ecx
jne 0x413d5e
mov dword [esp + 0x9c], 1
movups xmm0, xmmword [esi + 0x34]
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.004163a0
mov ecx, dword [esp + 0xcc]
add esp, 0x1c
test cl, cl
je 0x413e06
xor eax, eax
cmp byte [esp + 0x18], al
sete al
jmp 0x413e0b
movzx eax, byte [esp + 0x18]
test eax, eax
je 0x413e19
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esi + 0x18]
cmp eax, 0x127
jg 0x414088
je 0x414092
sub eax, 0x9b
je 0x413e39
sub eax, 0x46
je 0x413e82
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.00415200
mov ecx, eax
add esp, 0x28
test ecx, ecx
jns 0x413e8d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x60
ret
push dword [esp + 0xb0]
push esi
call fcn.00415eb0
add esp, 8
cmp eax, 0x12d
je 0x41407e
cmp eax, 0xe4
je 0x41407e
or edi, 0xffffffff
lea esi, [ecx - 1]
nop dword [eax]
cmp esi, 1
jl 0x414057
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 0x413f0b
sub eax, 2
je 0x413f0b
movd xmm0, esi
cvtdq2pd xmm0, xmm0
push ebp
sub esp, 8
movsd qword [esp], xmm0
call fcn.00407920
mov ecx, 0xe1
lea ebx, [ecx - 0x46]
jmp 0x413f1e
mov eax, esi
cdq
push ebp
push edx
push eax
call fcn.0040f5b0
mov ecx, 0x127
lea ebx, [ecx - 0x1d]
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.0044a100
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.0044a100
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.0044a100
add esp, 0x48
cmp byte [esp + 0xb0], 0
je 0x41404a
xor eax, eax
cmp byte [esp + 0x60], al
sete al
jmp 0x41404f
movzx eax, byte [esp + 0x60]
test eax, eax
jne 0x41406d
mov ebx, dword [esp + 0x14]
inc edi
inc esi
cmp edi, 1
jle 0x413ec0
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, 0x139
je 0x414092
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.00415550
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret