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

Disassembly:
sub esp, 0x78
push ebx
push esi
push dword [esp + 0x8c]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0
push dword [esp + 0x8c]
mov ebx, ecx
push eax
mov dword [esp + 0x1c], ebx
call fcn.004a5450
add esp, 0xc
mov ecx, eax
call fcn.00433d30
mov edx, dword [ebx + 0x1c]
mov esi, eax
mov ecx, dword [edx + 8]
mov ecx, dword [edx + ecx*4 + 0x10]
cmp esi, dword [ecx]
jge 0x4a598a
push esi
lea eax, [esp + 0x58]
mov ecx, ebx
push eax
call fcn.004a5c80
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmm1, xmmword [eax]
movdqu xmmword [esp + 0x38], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x50], eax
pextrw eax, xmm1, 6
movdqu xmmword [esp + 0x28], xmm1
movq qword [esp + 0x48], xmm0
test ax, ax
jne 0x4a5970
cmp word [esp + 0x44], ax
jne 0x4a5970
mov eax, dword [esp + 0x34]
shr eax, 0x10
test eax, eax
je 0x4a5970
mov eax, dword [esp + 0x44]
shr eax, 0x10
test eax, eax
jne 0x4a598a
mov esi, dword [esp + 0x84]
push esi
call fcn.00474e30
add esp, 4
mov eax, esi
pop esi
pop ebx
add esp, 0x78
ret 0xc
push ebp
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0x7fffffff
push edi
lea esp, [esp]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
dec eax
js 0x4a59c3
mov edx, ecx
mov edi, dword [edx + 8]
lea ecx, [edi + eax]
mov ecx, dword [edx + ecx*4 + 0x10]
cmp dword [ecx], esi
jle 0x4a5a55
dec eax
jns 0x4a59b1
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ecx + 8]
mov eax, dword [ecx + eax*4 + 0x10]
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movq xmm2, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x58], eax
psrldq xmm0, 0xc
movd eax, xmm0
movdqu xmmword [esp + 0x6c], xmm1
shr eax, 0x10
movq qword [esp + 0x50], xmm2
movdqu xmmword [esp + 0x40], xmm1
test eax, eax
jne 0x4a5a19
mov eax, dword [esp + 0x78]
shr eax, 0x10
test eax, eax
je 0x4a5ae4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004a4200
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmp ecx, ebp
jg 0x4a5a61
jl 0x4a5a4b
cmp eax, ebx
jae 0x4a5a61
mov edx, eax
mov edi, ecx
mov eax, ebx
mov ecx, ebp
jmp 0x4a5a65
lea ecx, [eax + edi]
mov eax, dword [edx + ecx*4 + 0x10]
jmp 0x4a59cd
mov edx, ebx
mov edi, ebp
cmp dword [esp + 0x94], ecx
jl 0x4a5a91
jg 0x4a5a79
cmp dword [esp + 0x90], eax
jbe 0x4a5a91
test eax, eax
jne 0x4a5a85
cmp ecx, 0x80000000
je 0x4a5a91
mov edx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jmp 0x4a5ac1
cmp dword [esp + 0x94], edi
jl 0x4a5abd
jg 0x4a5aa5
cmp dword [esp + 0x90], edx
jbe 0x4a5abd
test edx, edx
jne 0x4a5ab1
cmp edi, 0x80000000
je 0x4a5abd
mov dword [esp + 0x14], edx
mov edx, edi
mov dword [esp + 0x10], edx
jmp 0x4a5ac1
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
dec esi
cmp edi, 0xffffffff
jne 0x4a5b00
cmp edx, 0x7fffffff
jne 0x4a5b00
cmp esi, 0xee943c90
jl 0x4a5ae4
mov ebx, dword [esp + 0x18]
jmp 0x4a59a0
mov esi, dword [esp + 0x8c]
push esi
call fcn.00474e30
add esp, 4
mov eax, esi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x78
ret 0xc
cmp edi, ebx
jne 0x4a5b0f
cmp edx, ebp
jne 0x4a5b0f
mov eax, 1
jmp 0x4a5b11
xor eax, eax
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x18]
push eax
push edx
push edi
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.004a5cf0
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x78
ret 0xc