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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x574be0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov esi, ecx
push 5
push dword [esi - 0x24]
mov dword [esi + 0x10], 0x14
call dword [0x51b4a0]
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x20], ebx
cmp ebx, 0xff
jge 0x48b5de
mov edi, edi
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
test eax, eax
je 0x48b5c3
push 0xffffffffffffffec
push dword [esi - 0x24]
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 1
call dword [0x51b468]
test eax, 0x80000
jne 0x48b3e5
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi - 0x24]
call dword [0x51b480]
push dword [esi - 0x24]
call dword [0x51b458]
push eax
mov dword [esp + 0x20], eax
call dword [0x51b088]
mov edi, eax
lea eax, [esp + 0x44]
push eax
push dword [esi - 0x24]
mov dword [esp + 0x14], edi
call dword [0x51b410]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
push eax
push ecx
push dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call dword [0x51b0a0]
push eax
push edi
call dword [0x51b084]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x58], ecx
shl ecx, 5
add ecx, 0x1f
sar ecx, 3
push 0
and ecx, 0xfffffffc
imul ecx, eax
push 0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x64]
push eax
movq qword [esp + 0x74], xmm0
movq qword [esp + 0x7c], xmm0
movq qword [esp + 0x84], xmm0
push 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x78], 0x200001
mov dword [esp + 0x7c], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x44], 0
call dword [0x51b078]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x14]
shl ecx, 2
push ecx
push 0
push dword [esp + 0x34]
mov dword [esp + 0x34], eax
call fcn.004eff30
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x48b5b4
push eax
push edi
call dword [0x51b084]
mov ecx, dword [esp + 0x44]
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
push eax
push edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
call dword [0x51b54c]
mov edi, dword [esp + 0x24]
push 3
push edi
call dword [0x51b564]
push dword [esp + 0x18]
mov eax, dword [esp + 0x34]
push dword [esp + 0x18]
push 0
push 0
push dword [eax + 4]
push edi
call dword [0x51b568]
push 2
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x38]
push dword [esi - 0x24]
call dword [0x51b3d0]
push dword [esp + 0xc]
push edi
call dword [0x51b53c]
push ebx
push dword [esp + 0x10]
call dword [0x51b084]
mov eax, dword [esp + 0x28]
push eax
call dword [0x51b080]
push edi
call dword [0x51b56c]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
push edi
mov edi, dword [0x51b074]
call edi
push dword [esp + 0x1c]
call edi
push 0x1e
call dword [0x51b1a8]
add ebx, 0x14
mov dword [esp + 0x20], ebx
cmp ebx, 0xff
jl 0x48b3a0
mov eax, dword [esi + 0x18]
push 0xff
push dword [eax + 4]
lea ecx, [esi - 0x28]
call fcn.0048bb20
call fcn.004ebded
mov ecx, dword [esp + 0x7c]
pop edi
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], 1
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004e9f8a
mov esp, ebp
pop ebp
ret