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

Disassembly:
sub esp, 0x7f8
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x7f4], eax
push ebx
push esi
mov esi, dword [esp + 0x804]
lea eax, [esp + 0x78]
push edi
mov edi, dword [esp + 0x80c]
push 0x44
push 0
push eax
call fcn.004efc10
push 0x48
lea eax, [esp + 0x44]
push 0
push eax
call fcn.004efc10
mov ebx, dword [esi]
lea eax, [esi + 4]
add esp, 0x18
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
cmp ebx, 0x10
jbe 0x541453
pop edi
pop esi
mov eax, 0xffffffd4
pop ebx
mov ecx, dword [esp + 0x7f4]
xor ecx, esp
call fcn.0046ec22
add esp, 0x7f8
ret
push dword [esp + 0x810]
lea eax, [esp + 0x1c]
push edi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x514]
push 0x100
push eax
call fcn.005416a0
add esp, 0x1c
mov dword [esp + 0x30], eax
cmp eax, 0xffffff88
ja 0x541684
mov edi, dword [esp + 0x18]
cmp edi, ebx
ja 0x541436
cmp dword [esp + edi*4 + 0x7c], 0
mov eax, edi
mov dword [esp + 0x1c], edi
jne 0x5414b0
dec eax
cmp dword [esp + eax*4 + 0x7c], 0
je 0x5414a4
mov dword [esp + 0x1c], eax
xor edx, edx
push ebp
lea ebp, [eax + 1]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ebp
lea ecx, [edx + 1]
cmp ebp, ecx
jbe 0x5414e6
nop word [eax + eax]
mov eax, edx
add edx, dword [esp + ecx*4 + 0x80]
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, ebp
jb 0x5414d0
mov dword [esp + 0x2c], edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x3c], edx
test esi, esi
je 0x54151a
movzx edx, byte [esp + ebx + 0x504]
mov ecx, dword [esp + edx*4 + 0x3c]
mov byte [esp + ecx*2 + 0x604], bl
lea eax, [ecx + 1]
inc ebx
mov dword [esp + edx*4 + 0x3c], eax
mov byte [esp + ecx*2 + 0x605], dl
cmp ebx, esi
jb 0x5414f4
mov eax, dword [esp + 0x24]
mov ebx, eax
sub ebx, edi
mov dword [esp + 0x3c], 0
xor edi, edi
dec ebx
lea esi, [edi + 1]
cmp ebp, esi
jbe 0x541554
mov eax, dword [esp + esi*4 + 0x80]
lea ecx, [esi + ebx]
mov edx, edi
shl eax, cl
mov dword [esp + esi*4 + 0xc4], edx
add edi, eax
inc esi
cmp esi, ebp
jb 0x541534
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esp + 0x20]
inc ebx
sub eax, ebx
inc eax
mov dword [esp + 0x18], eax
cmp ebx, eax
jae 0x54164c
mov eax, ebx
lea ecx, [esp + 0xc4]
shl eax, 4
lea edx, [ebp - 1]
add eax, ebx
mov edi, 0x10
shl eax, 2
add ecx, eax
sub edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov esi, 1
movd xmm1, ebx
cmp ebp, esi
jbe 0x541632
cmp edx, 8
jb 0x5415f9
lea edx, [ecx + edx*4]
add ecx, 4
lea eax, [esp + ebp*4 + 0xc0]
cmp ecx, eax
ja 0x5415c7
lea eax, [esp + 0xc8]
cmp edx, eax
jae 0x5415f5
lea eax, [ebp - 1]
mov edx, ebp
and eax, 7
sub edx, eax
movups xmm0, xmmword [ecx + edi - 0x10]
add esi, 8
lea ecx, [ecx + 0x20]
psrld xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
movups xmm0, xmmword [ecx + edi - 0x20]
psrld xmm0, xmm1
movups xmmword [ecx - 0x10], xmm0
cmp esi, edx
jb 0x5415d1
mov ecx, dword [esp + 0x10]
cmp esi, ebp
jae 0x54162e
mov edi, dword [esp + 0x28]
lea ebp, [esp + 0xc4]
sub ebp, ecx
lea edx, [ecx + esi*4]
sub edi, esi
nop
mov eax, dword [edx + ebp]
lea edx, [edx + 4]
mov ecx, ebx
shr eax, cl
mov dword [edx - 4], eax
sub edi, 1
jne 0x541610
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc ebx
lea edx, [ebp - 1]
add ecx, 0x44
sub edi, 0x44
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
cmp ebx, eax
jb 0x541595
mov eax, dword [esp + 0x1c]
inc eax
push eax
push dword [esp + 0x24]
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x618]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x4c]
call fcn.005448a0
mov eax, dword [esp + 0x54]
add esp, 0x20
pop ebp
mov ecx, dword [esp + 0x800]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x7f8
ret