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

Disassembly:
push 0xffffffffffffffff
push 0x5dce31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x38]
mov cl, byte [ebp + 0x118]
add eax, edx
test cl, cl
mov dword [esp + 0x1c], 0x3c
mov byte [esp + 0x13], 0
je 0x48c733
mov eax, dword [ebp + 0x198]
mov byte [esp + 0x13], 1
test eax, eax
jl 0x48c7a6
lea esi, [eax + 0x3c]
mov eax, 0x88888889
imul esi
add edx, esi
mov byte [esp + 0x13], 1
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
test ebx, ebx
jle 0x48c7a6
mov ecx, dword [esp + 0x19c]
cmp ebx, dword [ecx + 0x24]
jge 0x48c7a6
mov ecx, ebx
mov eax, 0x20202020
lea edi, [esp + 0x80]
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x194]
lea eax, [esp + 0x84]
push eax
push ecx
mov ecx, ebp
mov byte [esp + ebx + 0x8c], 0
call fcn.0048c5a0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0x44]
mov esi, dword [esp + 0x194]
cmp eax, 2
jne 0x48c82f
mov eax, dword [esi]
mov ecx, dword [eax + 0x110]
test ecx, ecx
je 0x48c7ca
cmp dword [ecx + 0x10c], 1
je 0x48c82f
mov eax, dword [eax + 4]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x19c]
sar edx, 1
mov ebx, dword [eax + 0x28]
sub ebx, edx
mov edx, dword [esp + 0x14]
sub ebx, edx
test ebx, ebx
jle 0x48c82f
cmp ebx, dword [eax + 0x24]
jge 0x48c82f
mov ecx, ebx
mov eax, 0x20202020
mov edx, ecx
lea edi, [esp + 0x80]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x194]
lea eax, [esp + 0x84]
push eax
push ecx
mov ecx, ebp
mov byte [esp + ebx + 0x8c], 0
call fcn.0048c5a0
add dword [esp + 0x14], ebx
mov ebx, dword [esi]
test ebx, ebx
je 0x48ce10
mov al, byte [esp + 0x13]
test al, al
jne 0x48c8d6
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x48c8d6
mov edx, dword [esp + 0x1c]
mov eax, 0x88888889
add ecx, edx
imul ecx
add edx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
sub edx, ecx
mov esi, edx
test esi, esi
jle 0x48c8d6
mov ecx, dword [esp + 0x19c]
cmp esi, dword [ecx + 0x24]
jge 0x48c8d6
mov ecx, esi
mov eax, 0x20202020
lea edi, [esp + 0x80]
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x194]
lea eax, [esp + 0x84]
push eax
push ecx
mov ecx, ebp
mov byte [esp + esi + 0x8c], 0
call fcn.0048c5a0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add eax, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 1
cmp dword [ebx + 0x10c], 1
jne 0x48cbdd
mov al, byte [ebp + 0x118]
mov byte [esp + 0x1b], 0x20
test al, al
mov byte [esp + 0x13], 1
lea edi, [ebp + 0x48]
je 0x48c900
lea edi, [ebp + 0x11c]
mov eax, dword [edi + 4]
lea esi, [edi + 4]
test eax, eax
je 0x48cb2c
push edi
mov ecx, ebp
call fcn.0048f300
mov edx, dword [edi]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
test edx, edx
mov dword [esp + 0x20], ecx
jl 0x48c93e
mov ecx, esi
mov esi, dword [ecx]
cmp esi, dword [esp + 0x1c]
jg 0x48c93a
inc eax
add ecx, 4
cmp eax, edx
jle 0x48c92a
mov ecx, dword [esp + 0x20]
cmp eax, edx
jle 0x48c960
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x31c]
cdq
idiv edi
mov esi, edi
sub esi, edx
jne 0x48c957
mov esi, edi
mov eax, dword [esp + 0x1c]
lea edi, [esi + eax]
jmp 0x48c989
mov edx, dword [edi + eax*4 + 4]
mov ecx, 0x2580
cmp edx, ecx
jle 0x48c971
mov dword [edi + eax*4 + 4], ecx
mov ecx, dword [edi + eax*4 + 0x2c]
mov edx, dword [edi + eax*4 + 0x54]
mov edi, dword [edi + eax*4 + 4]
mov eax, dword [esp + 0x1c]
mov esi, edi
mov dword [esp + 0x28], edx
sub esi, eax
mov eax, 0x88888889
imul edi
add edx, edi
mov edi, dword [esp + 0x14]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
sub edx, edi
dec eax
mov edi, edx
mov dword [esp + 0x20], edi
je 0x48ca59
dec eax
jne 0x48cb08
mov ecx, dword [ebx + 0x110]
test ecx, ecx
je 0x48cb08
call fcn.0048db40
mov ecx, dword [ebx + 0x110]
push 0
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x38]
sub edi, edx
mov dword [esp + 0x24], edi
call fcn.005a6b52
mov edx, dword [esp + 0x19c]
lea ecx, [esp + 0x34]
add edx, 0x10
mov dword [esp + 0x188], 1
push edx
call fcn.005a5d6b
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x110]
lea edx, [esp + 0x5c]
mov ecx, dword [eax + 4]
add eax, 0xc
push edx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
call fcn.005a5d6b
mov edx, dword [ebp + 0x314]
imul edx, dword [esp + 0x5c]
sub esi, edx
jns 0x48ca45
xor esi, esi
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x34]
jmp 0x48cb03
mov ecx, dword [ebx + 0x110]
test ecx, ecx
je 0x48cb08
call fcn.0048db40
mov eax, dword [ebx + 0x110]
push 0
lea ecx, [esp + 0x4c]
mov eax, dword [eax + 4]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov dword [esp + 0x24], edi
call fcn.005a6b52
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x188], 0
add ecx, 0x10
push ecx
lea ecx, [esp + 0x4c]
call fcn.005a5d6b
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x110]
lea edx, [esp + 0x78]
mov ecx, dword [eax + 4]
add eax, 0xc
push edx
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x4c]
call fcn.005a5d6b
mov eax, dword [ebp + 0x314]
imul eax, dword [esp + 0x78]
cdq
sub eax, edx
sar eax, 1
neg eax
add esi, eax
jns 0x48caf4
xor esi, esi
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.005a6bc4
mov eax, dword [esp + 0x28]
sub eax, 0
je 0x48cb25
dec eax
je 0x48cb1e
dec eax
jne 0x48cb67
mov byte [esp + 0x1b], 0x2d
jmp 0x48cb67
mov byte [esp + 0x1b], 0x2e
jmp 0x48cb67
mov byte [esp + 0x1b], 0x20
jmp 0x48cb67
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x31c]
cdq
idiv ecx
mov esi, ecx
sub esi, edx
jne 0x48cb41
mov esi, ecx
mov edx, dword [esp + 0x1c]
mov eax, 0x88888889
lea ecx, [esi + edx]
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x14]
mov edi, edx
sub edi, eax
mov dword [esp + 0x20], edi
test edi, edi
jle 0x48cdfb
mov ecx, dword [esp + 0x19c]
cmp edi, dword [ecx + 0x24]
jge 0x48cdfb
mov eax, dword [esp + 0x1c]
mov ecx, edi
add eax, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
add esi, edi
movsx eax, byte [esp + 0x1b]
mov dl, al
mov dword [esp + 0x14], esi
mov dh, dl
mov esi, ecx
mov eax, edx
lea edi, [esp + 0x80]
shl eax, 0x10
mov ax, dx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x190]
push eax
mov byte [esp + eax + 0x84], 0
lea eax, [esp + 0x84]
push eax
push ecx
jmp 0x48cdf4
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x48cbf9
mov al, byte [ebp + 0x320]
test al, al
je 0x48cbf9
mov ecx, ebp
call fcn.0048be00
mov al, byte [esp + 0x13]
test al, al
jne 0x48cc97
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x48cc97
mov edx, dword [esp + 0x1c]
lea ecx, [eax + edx]
mov eax, 0x88888889
imul ecx
add edx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
sub edx, ecx
mov esi, edx
test esi, esi
jle 0x48cc97
mov ecx, dword [esp + 0x19c]
cmp esi, dword [ecx + 0x24]
jge 0x48cc97
mov ecx, esi
mov eax, 0x20202020
lea edi, [esp + 0x80]
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x194]
lea eax, [esp + 0x84]
push eax
push ecx
mov ecx, ebp
mov byte [esp + esi + 0x8c], 0
call fcn.0048c5a0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add eax, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 1
push 0
lea ecx, [esp + 0x68]
call fcn.005a6b52
mov eax, dword [esp + 0x19c]
lea ecx, [esp + 0x64]
add eax, 0x10
mov dword [esp + 0x188], 2
push eax
call fcn.005a5d6b
mov edx, dword [esp + 0x6c]
mov esi, eax
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x2c]
push ecx
lea edi, [ebx + 0xc]
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push esi
lea ecx, [esp + 0x68]
call fcn.005a5d6b
mov esi, dword [ebp + 0x314]
lea ecx, [esp + 0x64]
imul esi, dword [esp + 0x2c]
mov dword [esp + 0x188], 0xffffffff
call fcn.005a6bc4
mov eax, dword [esp + 0x19c]
mov ecx, dword [eax + 0x24]
mov al, byte [ebp + 0x118]
test al, al
je 0x48cd1d
mov ecx, 0x50
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x14]
add edx, eax
cmp ecx, edx
jge 0x48cdd3
mov edx, dword [ebx + 4]
xor esi, esi
xor eax, eax
test edx, edx
jle 0x48cd57
mov edx, dword [esp + 0x14]
add edx, eax
cmp ecx, edx
jl 0x48cd53
cmp byte [edi + eax], 0x20
jne 0x48cd4b
mov esi, eax
mov edx, dword [ebx + 4]
inc eax
cmp eax, edx
jl 0x48cd39
test esi, esi
jne 0x48cd60
mov esi, dword [ebx + 4]
cmp esi, ecx
jl 0x48cd60
mov esi, ecx
mov eax, dword [esp + 0x190]
push esi
push edi
push eax
mov ecx, ebp
mov byte [edi + esi], 0
call fcn.0048c5a0
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x190]
push 0
push ecx
push edx
mov ecx, ebp
call fcn.0048bae0
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], 0
cmp esi, eax
mov dword [esp + 0x1c], 0x3c
jge 0x48cdfb
sub eax, esi
dec eax
mov dword [ebx + 4], eax
push eax
lea eax, [esi + ebx + 0xd]
push eax
push edi
call fcn.0055bc50
mov ecx, dword [ebx + 4]
add esp, 0xc
mov byte [ecx + ebx + 0xc], 0
mov ecx, ebx
call fcn.0048da80
mov byte [esp + 0x13], 0
jmp 0x48cbdd
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x190]
add eax, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
add esi, eax
push eax
push edi
mov dword [esp + 0x1c], esi
push edx
mov ecx, ebp
call fcn.0048c5a0
mov ebx, dword [ebx + 0x110]
test ebx, ebx
jne 0x48c839
mov esi, dword [esp + 0x194]
mov eax, dword [esp + 0x19c]
mov ecx, dword [esp + 0x190]
push 0
push eax
push ecx
mov ecx, ebp
call fcn.0048bae0
mov ecx, dword [esi]
call fcn.0048da40
mov eax, dword [esp + 0x198]
mov edx, dword [esi]
mov ecx, dword [esp + 0x180]
pop edi
pop esi
mov dword [eax], edx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret 0x10