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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax + 0x4c]
mov ebx, dword [eax + 0x44]
mov edi, dword [eax + 0x48]
mov edx, dword [eax + 0x40]
mov dword [esp + 0x30], esi
cmp ebx, esi
mov esi, dword [ecx]
mov dword [esp + 0x2c], edi
mov edi, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov esi, dword [ecx + 4]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x24], edi
mov edi, dword [eax + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], ecx
je 0x410839
movzx ecx, byte [eax + 0x14]
movsd xmm0, qword [eax]
imul edi, esi, 0x58
mov edx, dword [eax + 0x10]
mov byte [esp + 7], cl
movzx ecx, byte [eax + 0x24]
movaps xmmword [esp + 0xb0], xmm0
movups xmm0, xmmword [eax + 0x28]
mov dword [esp + 8], edx
mov byte [esp + 6], cl
mov ecx, dword [ebp + 0xc]
movaps xmmword [esp + 0xa0], xmm0
add edi, dword [ecx + 8]
movzx ecx, byte [eax + 0x38]
mov ch, byte [eax + 0x39]
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc], eax
mov eax, edi
mov byte [esp + 5], cl
mov byte [esp + 4], ch
nop word [eax + eax]
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + 8]
test edx, edx
mov edi, 1
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, 1
je 0x41071b
js 0x41089f
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 1
push edx
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x4108ab
mov edx, dword [esp + 8]
mov dword [esp + 0x38], ebx
push edx
push dword [esp + 0x18]
mov dword [esp + 0x3c], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x410760
js 0x4108ba
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 1
push ebx
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x4108c6
mov ebx, dword [esp + 0xc]
mov edi, eax
push ebx
push dword [esp + 0x14]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, esi
sub eax, 1
jb 0x410892
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
call fcn.00491170
add esp, 0xc
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x34]
movaps xmm0, xmmword [esp + 0xb0]
mov ecx, 0x16
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x94], eax
movzx eax, byte [esp + 7]
mov dword [esp + 0x98], esi
movlps qword [esp + 0x48], xmm0
movaps xmm0, xmmword [esp + 0xa0]
lea esi, [esp + 0x48]
mov byte [esp + 0x5c], al
movzx eax, byte [esp + 6]
mov byte [esp + 0x6c], al
movzx eax, byte [esp + 5]
movups xmmword [esp + 0x80], xmm0
mov byte [esp + 0x9c], al
movzx eax, byte [esp + 4]
mov byte [esp + 0x9d], al
mov eax, dword [esp + 0x40]
mov edi, eax
add eax, 0x58
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
add ebx, 0xc
inc esi
cmp ebx, dword [esp + 0x30]
jne 0x4106d0
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410856
push 1
push eax
push dword [esp + 0x1c]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41086d
push 1
push eax
push dword [esp + 0x18]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41088a
shl eax, 2
lea eax, [eax + eax*2]
push 4
push eax
push dword [esp + 0x24]
call fcn.0040d1e0
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x537404
push 0
push eax
call fcn.004e1cd0
xor eax, eax
push dword [esp + 8]
push eax
call fcn.004d09f0
mov eax, 1
push dword [esp + 8]
push eax
call fcn.004d09f0
xor eax, eax
push dword [esp + 0xc]
push eax
call fcn.004d09f0
mov eax, 1
push dword [esp + 0xc]
push eax
call fcn.004d09f0
nop word cs:[eax + eax]
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, eax
mov dword [ebp - 0x18], eax
je 0x41098d
sub eax, ebx
add ebx, 0x58
lea edi, [ebp - 0x70]
add eax, 0xffffffa8
mov dword [ebp - 0x10], eax
nop
mov eax, dword [ebx - 0x58]
lea esi, [ebx - 0x54]
mov ecx, 0x15
rep movsd dword es:[edi], dword [esi]
cmp eax, 3
je 0x41098a
mov dword [ebp - 0x14], ebx
mov ebx, dword [edx + 8]
mov esi, eax
cmp ebx, dword [edx]
je 0x410966
mov eax, dword [edx + 4]
imul ecx, ebx, 0x58
inc ebx
mov dword [eax + ecx], esi
lea edi, [eax + ecx + 4]
lea eax, [ebp - 0x70]
mov ecx, 0x15
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [edx + 8], ebx
mov ecx, dword [ebp + 0x14]
mov edi, eax
mov ebx, dword [ebp - 0x14]
add dword [ebp - 0x10], 0xffffffa8
lea eax, [ebx - 0x58]
add ebx, 0x58
add eax, 0x58
cmp eax, ecx
jne 0x410910
jmp 0x410986
mov eax, dword [ebp - 0x10]
mov ecx, 0xba2e8ba3
mul ecx
shr edx, 6
inc edx
push edx
push ebx
push dword [ebp + 0xc]
call fcn.00423df0
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x41092e
mov ebx, ecx
mov eax, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
call fcn.00411ba0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov eax, esi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret