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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x886f80]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [esp + 0x68]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0x68]
push esi
lea eax, [ebx + 0x4d]
movq qword [esp + 0x5c], xmm0
movups xmmword [esp + 0x3c], xmm0
mov dword [ebp], 3
mov dword [ebp + 4], ebx
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
push edi
nop
mov eax, dword [ebx + 0x3c]
inc eax
push eax
push dword [ebp + 0xc]
call fcn.0040a570
mov ecx, dword [ebx + 0x20]
mov edx, eax
xor esi, esi
mov dword [esp + 0x1c], edx
add esp, 8
mov dword [edx + 0x20], ecx
lea edi, [edx + 0x38]
mov ecx, dword [ebx + 0x40]
mov dword [edx + 0x40], ecx
mov ecx, dword [ebx + 0x18]
mov dword [edx + 0x18], ecx
movzx ecx, byte [ebx + 0x44]
mov byte [edx + 0x44], cl
movzx ecx, byte [ebx + 0x45]
mov byte [edx + 0x45], cl
movzx eax, byte [ebx + 0x46]
mov byte [edx + 0x46], al
movzx eax, byte [ebx + 0x47]
mov byte [edx + 0x47], al
mov ecx, dword [ebx + 0x48]
xor ecx, dword [edx + 0x48]
and ecx, 8
xor ecx, dword [edx + 0x48]
mov dword [edx + 0x48], ecx
mov eax, dword [ebx + 0x48]
xor eax, ecx
and eax, 3
xor eax, ecx
mov dword [edx + 0x48], eax
mov eax, dword [ebx + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x58]
mov dword [edx + 0x58], eax
mov eax, dword [ebx + 0x5c]
mov dword [edx + 0x5c], eax
mov eax, dword [ebx + 0x60]
mov dword [edx + 0x60], eax
cmp dword [ebx + 0x3c], esi
jbe 0x4d5ae9
xor eax, eax
mov ecx, dword [ebx + 0x38]
lea eax, [eax + 0x14]
xorps xmm0, xmm0
inc esi
movups xmmword [esp + 0x20], xmm0
mov ecx, dword [ecx + eax - 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi]
movups xmm0, xmmword [esp + 0x20]
movups xmmword [ecx + eax - 0x14], xmm0
mov ecx, dword [ebx + 0x38]
mov edx, dword [edi]
mov ecx, dword [ecx + eax - 4]
mov dword [eax + edx - 4], ecx
cmp esi, dword [ebx + 0x3c]
jb 0x4d5ab4
mov esi, dword [esp + 0x1c]
push 0x20
movsx eax, byte [esi - 1]
cdq
push edx
push eax
call fcn.0040f5b0
mov dword [esp + 0x3c], eax
movsx eax, byte [esi]
mov dword [esp + 0x40], edx
cdq
push 0x20
push edx
push eax
call fcn.0040f5b0
push 0x20
push 2
push dword [ebp + 0xc]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
call fcn.004097b0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4d5b43
movups xmm0, xmmword [esp + 0x30]
push esi
push ebp
movups xmmword [esi + 0x30], xmm0
call fcn.0041d130
add esp, 8
add esi, 0x18
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x14]
movups xmm0, xmmword [esp + 0x20]
push 0x20
push ebx
mov eax, dword [esi + 0x3c]
lea ecx, [eax + eax*4]
mov eax, dword [edi]
lea edi, [esi + 0x24]
movups xmmword [eax + ecx*4 - 0x14], xmm0
mov dword [eax + ecx*4 - 4], 3
call fcn.0040a800
movzx ecx, byte [ebx + 0x47]
add esp, 4
add eax, ecx
push eax
push edi
push esi
call fcn.00407af0
push esi
push ebp
call fcn.0041d130
mov esi, dword [esp + 0x30]
add esp, 0x18
cmp byte [ebx + 0x47], 0
mov dword [esp + esi*8 + 0x40], edi
mov dword [esp + esi*8 + 0x44], 3
je 0x4d5c3c
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
push edi
push ebp
call fcn.004119a0
add esp, 0x10
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
je 0x4d5c36
push 0x21e
push dword [ebp + 0xc]
call fcn.00409600
mov esi, eax
push 0x20
push 1
lea edi, [esi + 0x1c]
push edi
push esi
call fcn.00407af0
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x44], eax
movups xmm0, xmmword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push esi
movups xmmword [esi + 0x54], xmm0
push ebp
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x4c], eax
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0x64], xmm0
call fcn.0041d130
mov esi, dword [esp + 0x38]
mov eax, edi
add esp, 0x20
mov dword [esp + 0x10], eax
jmp 0x4d5c40
mov dword [esp + 0x10], eax
jmp 0x4d5c40
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], 2
inc esi
mov dword [esp + 0x18], esi
cmp esi, 4
jb 0x4d5a30
pop edi
mov dword [esp + 0x5c], eax
movzx eax, byte [ebx + 0x34]
pop esi
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x60], 0
push eax
push ebp
call fcn.0041d840
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.00407b40
push ebx
call fcn.00409250
mov ecx, dword [esp + 0x78]
add esp, 0x18
mov al, 1
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5b77
add esp, 0x5c
ret