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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4e6e00]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa4]
push edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ebx
cmp eax, 0x20
jae 0x48d362
xor ecx, ecx
mov word [esp + eax + 0x50], cx
add eax, 2
cmp eax, 0x1e
jbe 0x48cf1f
push ebp
mov ebp, dword [esp + 0xa4]
xor eax, eax
test ebp, ebp
je 0x48cf53
movzx eax, word [edx + ecx*2]
inc word [esp + eax*2 + 0x54]
inc ecx
cmp ecx, ebp
jb 0x48cf45
mov eax, dword [ebx]
xor ecx, ecx
push esi
push 0xf
inc ecx
xor esi, esi
pop edx
cmp word [esp + edx*2 + 0x58], si
jne 0x48cf6a
dec edx
cmp edx, ecx
jae 0x48cf5e
cmp eax, edx
cmova eax, edx
test edx, edx
jne 0x48cfa0
mov byte [esp + 0x11], cl
xor eax, eax
mov ecx, dword [edi]
mov byte [esp + 0x10], 0x40
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
add dword [edi], 4
mov ecx, dword [edi]
mov dword [ecx], eax
add dword [edi], 4
mov dword [ebx], 1
jmp 0x48d33d
mov ebx, ecx
cmp edx, ecx
jbe 0x48cfb2
cmp word [esp + ebx*2 + 0x58], si
jne 0x48cfb2
inc ebx
cmp ebx, edx
jb 0x48cfa6
cmp eax, ebx
cmovb eax, ebx
xor esi, esi
mov dword [esp + 0x1c], eax
inc esi
movzx eax, word [esp + esi*2 + 0x58]
add ecx, ecx
sub ecx, eax
js 0x48d35d
inc esi
cmp esi, 0xf
jbe 0x48cfbe
test ecx, ecx
jle 0x48cfee
cmp dword [esp + 0xa0], 0
je 0x48d35d
cmp edx, 1
jne 0x48d35d
xor eax, eax
push 2
mov word [esp + 0x7e], ax
pop ecx
mov ax, word [esp + ecx + 0x78]
add ax, word [esp + ecx + 0x58]
mov word [esp + ecx + 0x7a], ax
add ecx, 2
cmp ecx, 0x1e
jb 0x48cff8
xor eax, eax
mov ecx, eax
test ebp, ebp
je 0x48d043
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x48]
movzx eax, word [edi + ecx*2]
test ax, ax
je 0x48d03a
movzx eax, word [esp + eax*2 + 0x78]
mov word [esi + eax*2], cx
movzx eax, word [edi + ecx*2]
inc word [esp + eax*2 + 0x78]
inc ecx
cmp ecx, ebp
jb 0x48d01f
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0xa0]
xor esi, esi
push 0xffffffffffffffff
pop ecx
mov dword [esp + 0x34], ecx
sub eax, esi
je 0x48d091
dec eax
je 0x48d070
mov dword [esp + 0x38], 0x4c64c8
mov dword [esp + 0x30], 0x4c6508
mov dword [esp + 0x2c], ecx
jmp 0x48d0a5
mov ecx, 0x202
mov dword [esp + 0x2c], 0x100
mov eax, 0x4c6448
sub eax, ecx
mov dword [esp + 0x38], eax
mov eax, 0x4c6488
sub eax, ecx
jmp 0x48d0a1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x13
mov dword [esp + 0x30], eax
mov eax, dword [edi]
xor ecx, ecx
mov dword [esp + 0x18], eax
xor eax, eax
inc eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
shl eax, cl
cmp dword [esp + 0xa0], 1
mov ebp, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], ebp
lea eax, [ebp - 1]
mov dword [esp + 0x50], eax
jne 0x48d0e1
cmp ebp, 0x354
jae 0x48d358
cmp dword [esp + 0xa0], 2
jne 0x48d0f7
cmp ebp, 0x250
jae 0x48d358
mov ebp, dword [esp + 0x2c]
mov al, bl
sub al, byte [esp + 0x14]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x20]
movzx eax, word [eax]
mov ecx, eax
cmp ecx, ebp
jge 0x48d11a
xor ecx, ecx
mov byte [esp + 0x10], cl
jmp 0x48d138
jle 0x48d131
mov eax, dword [esp + 0x30]
mov al, byte [eax + ecx*2]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x38]
mov ax, word [eax + ecx*2]
jmp 0x48d138
mov byte [esp + 0x10], 0x60
xor eax, eax
mov ebp, dword [esp + 0x44]
mov ecx, ebx
sub ecx, dword [esp + 0x14]
mov word [esp + 0x12], ax
xor eax, eax
inc eax
mov dword [esp + 0x3c], ebp
shl eax, cl
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
shl eax, 2
mov dword [esp + 0x40], eax
mov eax, esi
shr eax, cl
mov ecx, dword [esp + 0x18]
add eax, ebp
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x10]
sub ecx, dword [esp + 0x40]
mov dword [ecx], eax
sub ebp, dword [esp + 0x24]
jne 0x48d170
lea ecx, [ebx - 1]
inc ebp
shl ebp, cl
jmp 0x48d186
shr ebp, 1
test esi, ebp
jne 0x48d184
test ebp, ebp
je 0x48d19b
lea eax, [ebp - 1]
and esi, eax
add esi, ebp
mov dword [esp + 0x24], esi
jmp 0x48d1a3
xor eax, eax
mov esi, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov ecx, 0xffff
add eax, 2
add word [esp + ebx*2 + 0x58], cx
mov dword [esp + 0x20], eax
jne 0x48d1cd
cmp ebx, edx
je 0x48d2b0
movzx eax, word [eax]
mov ecx, dword [esp + 0x48]
movzx ebx, word [ecx + eax*2]
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jbe 0x48d0f7
mov ecx, dword [esp + 0x50]
and ecx, esi
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x34]
je 0x48d0f7
mov ecx, dword [esp + 0x14]
test ecx, ecx
cmove ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
xor ebp, ebp
mov ecx, dword [esp + 0x18]
inc ebp
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, ebx
sub ecx, eax
add eax, ecx
shl ebp, cl
mov dword [esp + 0x3c], eax
cmp eax, edx
jae 0x48d245
lea esi, [esp + 0x58]
mov edi, eax
lea esi, [esi + eax*2]
movzx eax, word [esi]
sub ebp, eax
test ebp, ebp
jle 0x48d23d
inc ecx
add esi, 2
inc edi
add ebp, ebp
cmp edi, edx
jb 0x48d229
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x28]
xor eax, eax
inc eax
shl eax, cl
add ebp, eax
mov dword [esp + 0x44], eax
cmp dword [esp + 0xa0], 1
mov dword [esp + 0x28], ebp
jne 0x48d26e
cmp ebp, 0x354
jae 0x48d358
cmp dword [esp + 0xa0], 2
jne 0x48d284
cmp ebp, 0x250
jae 0x48d358
mov ebp, dword [esp + 0x40]
mov eax, dword [edi]
mov dword [esp + 0x34], ebp
mov byte [eax + ebp*4], cl
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov byte [eax + ebp*4 + 1], cl
mov ecx, dword [edi]
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
mov word [ecx + ebp*4 + 2], ax
jmp 0x48d0f7
mov ecx, dword [esp + 0x14]
mov al, bl
sub al, cl
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
xor eax, eax
mov word [esp + 0x12], ax
jmp 0x48d326
test ecx, ecx
je 0x48d2f2
mov eax, dword [esp + 0x50]
and eax, esi
cmp eax, dword [esp + 0x34]
je 0x48d2f2
mov edx, dword [edi]
xor eax, eax
mov ecx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x10]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
xor edx, edx
lea ecx, [ebx - 1]
inc edx
shl edx, cl
jmp 0x48d30d
shr edx, 1
test esi, edx
jne 0x48d30b
test edx, edx
je 0x48d31e
lea eax, [edx - 1]
and esi, eax
add esi, edx
jmp 0x48d322
xor eax, eax
mov esi, eax
mov ecx, dword [esp + 0x14]
test esi, esi
jne 0x48d2ca
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
shl eax, 2
add dword [edi], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x98]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.00495535
add esp, 0x8c
ret
xor eax, eax
inc eax
jmp 0x48d33f
or eax, 0xffffffff
jmp 0x48d33f
call fcn.0048dc29
int3