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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x48c3b2
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 0x20000000
jge 0x48c347
mov ecx, dword [esp + 0x70]
cmp ecx, 0x20000000
jge 0x48c2dd
mov dword [esp + 0x4e], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
nop
mov edx, eax
xor ebx, ebx
jmp 0x48c0f9
or eax, 0xffffff80
mov byte [esp + ebx + 0x4e], al
inc ebx
mov eax, ebp
mov ebp, eax
and eax, 0x7f
sar ebp, 7
test ebp, ebp
jne 0x48c0ef
mov byte [esp + ebx + 0x4e], al
nop
mov eax, ecx
xor ebp, ebp
jmp 0x48c11a
or ecx, 0xffffff80
mov byte [esp + ebp + 0x44], cl
inc ebp
mov ecx, esi
mov esi, ecx
and ecx, 0x7f
sar esi, 7
test esi, esi
jne 0x48c110
mov dword [esp + 0x2c], ebp
mov byte [esp + ebp + 0x44], cl
lea ecx, [ebx + edx + 2]
lea esi, [edx + ebx]
test eax, eax
je 0x48c14a
lea edi, [eax + ebp]
lea edi, [edi + esi + 3]
movzx ebp, byte [esp + 0x74]
or ebp, 2
jmp 0x48c151
movzx ebp, byte [esp + 0x74]
mov edi, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebx
movzx ecx, byte [esp + 0x75]
test cl, cl
je 0x48c169
or ebp, 8
xchg ebp, eax
mov byte [esp + 0x27], al
xchg ebp, eax
mov dword [esp + 0x34], edi
lea eax, [0x4f2e80]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edi
call fcn.004461d0
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x27]
mov byte [eax], cl
mov ecx, dword [esp + 0x34]
lea edx, [ecx - 1]
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 1
add edx, eax
mov ebp, dword [esp + 0x30]
lea esi, [ebp + 1]
cmp esi, ebx
jl 0x48c1b4
mov esi, ebx
mov dword [esp + 0x5c], eax
lea ebx, [esp + 0x4e]
cmp ebx, edx
je 0x48c1dc
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.0045dc00
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffffe
mov ebx, ecx
neg ecx
sar ecx, 0x1f
add ebp, 2
and ebp, ecx
lea ecx, [ebp + eax]
mov ebp, dword [esp + 0x68]
cmp ebp, ebx
jl 0x48c1fd
mov ebp, ebx
mov ebx, dword [esp + 0x64]
cmp ebx, ecx
je 0x48c229
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.0045dc00
mov eax, dword [esp + 0x70]
test eax, eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
jmp 0x48c22f
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x48c2d5
mov ebx, dword [esp + 0x38]
sub edx, ebx
lea ebx, [edx - 2]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
mov esi, dword [esp + 0x28]
and esi, ebx
lea ebx, [esi + eax]
mov esi, dword [esp + 0x2c]
lea edi, [esi + 1]
cmp edi, ebp
jge 0x48c25d
mov ebp, edi
jmp 0x48c26b
mov dword [esp + 0x3c], eax
mov eax, ebp
mov ebp, edi
mov edi, eax
mov eax, dword [esp + 0x3c]
lea eax, [esp + 0x44]
cmp eax, ebx
je 0x48c2a3
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x58], ebx
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.0045dc00
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
sub edx, esi
lea eax, [edx - 3]
mov edx, eax
neg eax
sar eax, 0x1f
and eax, ebp
add eax, ebx
cmp ecx, edx
jl 0x48c2b9
mov ecx, edx
mov edx, dword [esp + 0x6c]
cmp edx, eax
je 0x48c2d1
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0045dc00
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov dword [esp], 0
lea eax, [0x512d57]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x400
lea eax, [0x50a469]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
call fcn.00449a70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408410
mov eax, dword [esp + 8]
lea ecx, [0x4f2cc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004321b0
mov dword [esp], 0
lea eax, [0x513207]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x21
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x400
lea eax, [0x50a469]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
call fcn.00449a70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408410
mov eax, dword [esp + 8]
lea ecx, [0x4f2cc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004321b0
nop
call fcn.0045c000
jmp fcn.0048c080