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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x14], 0xffffffff
or dword [esp + 0x2c], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov edx, edi
mov dword [esp + 0x30], ecx
lea eax, [esi - 1]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], edx
test edi, edi
je 0x48b476
test esi, esi
je 0x48b476
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x18], ecx
jne 0x48afc6
test eax, eax
jg 0x48b476
test eax, eax
jns 0x48afd1
push 0xfffffffffffffff1
jmp 0x48b478
cmp dword [edi + 0x20], ecx
mov eax, 0x5cd550
mov dword [esp + 0x4c], 0x989680
cmovne eax, dword [edi + 0x20]
cmp dword [edi], 0x50435245
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x14], eax
je 0x48b022
lea eax, [esp + 0xb0]
push eax
push ecx
lea edx, [esp + 0xe0]
mov ecx, edi
call fcn.0048b4a4
mov edx, eax
mov dword [esp + 0x14], eax
pop ecx
pop ecx
test edx, edx
jne 0x48b022
push 0xfffffffffffffffc
jmp 0x48b478
movzx eax, word [edx + 0x1a]
movzx ecx, word [edx + 0x1c]
mov ebx, dword [edx + 8]
imul ecx, eax
movzx eax, word [edx + 0x18]
xor edx, edx
inc edx
mov dword [esp + 0x10], ebx
push 3
mov dword [esp + 0x8c], esi
add ecx, edi
add eax, ecx
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], eax
mov eax, ebx
shr eax, 5
and eax, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], eax
mov eax, ebx
shr eax, 0xb
and eax, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
add eax, 0x340
mov dword [esp + 0x64], eax
mov eax, ebx
and eax, 7
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x1c]
cdq
pop edi
idiv edi
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edi
sub eax, edx
mov edi, dword [esp + 0xc]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa4], ecx
movzx ecx, word [edi + 0x12]
mov dword [esp + 0x18], eax
test cx, cx
je 0x48b116
cdq
idiv dword [esp + 0x1c]
cmp ecx, eax
jl 0x48b116
lea eax, [ecx + 1]
imul eax, eax, 3
mov dword [esp + 0x18], eax
shl eax, 2
push eax
call fcn.004d89a5
pop ecx
mov ecx, eax
mov dword [esp + 0x50], ecx
test ecx, ecx
jne 0x48b109
push 0xfffffffffffffffa
jmp 0x48b478
mov ebx, dword [edi + 8]
mov dword [esp + 0x2c], 1
jmp 0x48b11d
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x18]
mov edi, ebx
mov dword [esp + 0x54], eax
add eax, eax
cdq
push 3
pop esi
idiv esi
and dword [esp + 0x64], 0
or dword [esp + 0x9c], 0xffffffff
mov edx, dword [esp + 0x18]
mov esi, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0x10]
lea eax, [eax*2 + 2]
cmp eax, dword [ebp + 0x1c]
cmovle esi, eax
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x48b1a8
lea eax, [ecx + edx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ecx, eax
xor eax, eax
sar ecx, 1
inc eax
sub eax, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
sub ecx, 4
cmp ecx, eax
jb 0x48b1a4
or dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, eax
jae 0x48b18b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov ebx, dword [eax + 8]
mov edi, ebx
jmp 0x48b1ac
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test dl, 0x10
jne 0x48b1ef
test ebx, 0x40000000
je 0x48b1e4
movzx edx, word [eax + 0x14]
movzx edi, dl
shr edx, 8
and edx, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edx
je 0x48b1e0
mov edx, dword [esp + 0x14]
movzx edi, byte [edx + edi]
mov dword [esp + 0x28], edi
mov edi, ebx
jmp 0x48b1ef
test edx, 0x10000000
mov edi, ebx
cmove edi, ebx
mov ebx, dword [esp + 0x14]
test edi, 0x20000000
je 0x48b21c
movzx eax, word [eax + 0x16]
movzx edx, al
shr eax, 8
and eax, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], eax
movzx eax, byte [ebx + edx + 0x100]
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x48b269
mov edx, dword [esp + 0x18]
and dword [esp + 0x1c], 0
and dword [esp + 0x1c], 0
shl edx, 2
lea eax, [edx + ecx]
shr edx, 2
cmp ecx, eax
cmova edx, dword [esp + 0x1c]
test edx, edx
je 0x48b265
mov ecx, edx
or eax, 0xffffffff
mov edx, dword [esp + 0x50]
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
jmp 0x48b26d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
test eax, 0x40000
je 0x48b28a
mov eax, esi
cmp esi, edi
jae 0x48b284
cmp byte [eax], 0xa
je 0x48b284
inc eax
cmp eax, edi
jb 0x48b27a
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
test ecx, ecx
js 0x48b2bd
cmp esi, edi
jae 0x48b2da
cmp dword [esp + 0x30], 0
je 0x48b2af
movzx eax, byte [esi]
movzx eax, byte [eax + ebx]
cmp eax, ecx
je 0x48b2da
inc esi
cmp esi, edi
jb 0x48b29d
jmp 0x48b2da
movzx eax, byte [esi]
cmp eax, ecx
je 0x48b2da
inc esi
cmp esi, edi
jb 0x48b2af
jmp 0x48b2da
test eax, 0x10000000
je 0x48b2da
cmp esi, dword [esp + 0x88]
jbe 0x48b2da
jmp 0x48b2d6
cmp byte [esi - 1], 0xa
je 0x48b2da
inc esi
cmp esi, edi
jb 0x48b2cf
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x14]
mov edi, ebx
mov dword [esp + 0x24], edi
jl 0x48b351
mov eax, ebx
sub eax, esi
cmp eax, 0x3e8
jge 0x48b351
cmp dword [esp + 0x7c], 0
jne 0x48b351
not ecx
shr ecx, 0x1f
add ecx, esi
cmp ecx, dword [esp + 0x3c]
jbe 0x48b351
cmp ecx, ebx
jae 0x48b3b3
cmp dword [esp + 0x34], 0
je 0x48b331
movzx eax, byte [ecx]
mov edi, ecx
inc ecx
cmp eax, dword [esp + 0x20]
je 0x48b343
cmp eax, dword [esp + 0x38]
je 0x48b343
cmp ecx, ebx
jb 0x48b319
jmp 0x48b345
movzx eax, byte [ecx]
mov edi, ecx
inc ecx
cmp eax, dword [esp + 0x20]
je 0x48b343
cmp ecx, ebx
jb 0x48b331
jmp 0x48b345
mov ecx, edi
cmp ecx, ebx
jae 0x48b3b3
mov edi, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x48]
and dword [esp + 0x48], 0
mov ecx, esi
push 2
push 0
push dword [esp + 0x4c]
mov dword [esp + 0x9c], esi
push eax
push 2
call fcn.004896b0
add esp, 0x14
test eax, eax
jne 0x48b3e1
mov eax, dword [esp + 0x10]
test eax, 0x40000
je 0x48b38e
cmp byte [esi], 0xa
je 0x48b3af
inc esi
test al, 0x10
jne 0x48b3af
cmp esi, ebx
ja 0x48b3af
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x50]
jmp 0x48b224
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x2c], 0
je 0x48b3c1
push edx
call fcn.004cc3ce
pop ecx
cmp dword [esp + 0x7c], 0
je 0x48b3d9
cmp dword [esp + 0x80], 0
je 0x48b3d9
push 0xfffffffffffffff4
jmp 0x48b478
or eax, 0xffffffff
jmp 0x48b479
cmp eax, 1
jne 0x48b479
cmp dword [esp + 0x2c], 0
je 0x48b435
mov eax, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x50]
cmp eax, 4
jl 0x48b41b
lea eax, [eax*4 - 8]
push eax
lea eax, [ebx + 8]
push eax
mov eax, dword [ebp + 0x18]
add eax, 8
push eax
call fcn.004c2cb0
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x98], eax
mov edi, dword [esp + 0x64]
push 1
pop eax
push ebx
cmovg edi, eax
call fcn.004cc3ce
pop ecx
jmp 0x48b439
mov edi, dword [esp + 0x64]
test edi, edi
je 0x48b441
xor eax, eax
jmp 0x48b44d
mov eax, dword [esp + 0x98]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x1c], 2
jge 0x48b457
xor eax, eax
jmp 0x48b479
mov edx, dword [ebp + 0x18]
sub esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x88]
mov dword [edx], esi
mov dword [edx + 4], ecx
jmp 0x48b479
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret