Function at 0x47ae50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49f15b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
mov al, byte [esp + 0x3b]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov byte [esp + 0x4c], al
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x484]
mov ebp, dword [esp + 0x480]
mov dword [esp + 0x474], esi
mov dword [esp + 0x44], esi
mov ecx, dword [eax + 8]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
sub ecx, ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0xc]
sub ecx, edi
mov edi, 0x4f39d4
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x38]
push ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], esi
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x480]
mov dword [esp + 0x44], esi
not ecx
dec ecx
mov dword [esp + 0x14], esi
push ecx
push 0x4f39d4
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov bl, byte [ebp]
test bl, bl
je 0x47b006
mov eax, dword [esp + 0x20]
jmp 0x47af01
mov edi, dword [esp + 0x47c]
cmp bl, 0xd
jne 0x47af3d
cmp byte [ebp + 1], 0xa
jne 0x47af6a
test esi, esi
je 0x47af29
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x14]
push edx
push 1
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], esi
call fcn.0047eef0
xor esi, esi
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
add ebp, 2
jmp 0x47affb
cmp bl, 0x26
jne 0x47afa6
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x47af5d
inc ebp
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 1
jmp 0x47affb
cmp ecx, 1
jne 0x47af6a
mov dword [esp + 0x10], 0
mov dl, byte [ebp]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x28], dl
inc ebp
mov byte [esp + 0x29], 0
push 1
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add esi, eax
mov edi, eax
cmp esi, ecx
jg 0x47afc9
mov eax, dword [esp + 0x20]
cmp bl, 0x80
jbe 0x47aff6
inc eax
jmp 0x47aff6
cmp bl, 0x80
jbe 0x47af6a
mov cl, byte [ebp]
mov dl, byte [ebp + 1]
inc ebp
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], dl
inc ebp
mov byte [esp + 0x2a], 0
push 2
jmp 0x47af7e
lea edx, [esp + 0x14]
sub esi, eax
mov eax, dword [esp + 0x54]
push edx
push 1
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], esi
call fcn.0047eef0
xor eax, eax
cmp bl, 0x80
mov esi, edi
mov dword [esp + 0x1c], eax
jbe 0x47aff6
mov eax, 1
inc eax
mov dword [esp + 0x20], eax
mov bl, byte [ebp]
test bl, bl
jne 0x47aefa
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push 1
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], esi
call fcn.0047eef0
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
xor eax, eax
cmp edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
je 0x47b03c
mov eax, edx
sub eax, edi
sar eax, 4
mov ecx, dword [esp + 0x3c]
imul eax, ecx
mov esi, eax
mov eax, dword [esp + 0x34]
cmp esi, eax
mov dword [esp + 0x10], esi
jle 0x47b055
mov dword [esp + 0x10], eax
cmp edi, edx
mov ebx, edi
je 0x47b2d0
jmp 0x47b065
mov ecx, dword [esp + 0x3c]
mov edx, ebx
mov ebp, dword [edx]
mov dword [esp + 0x14], ebp
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
mov esi, dword [edx + 8]
mov dword [esp + 0x1c], esi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x44]
cmp esi, edx
jle 0x47b08e
mov dword [esp + 0x44], esi
mov edx, dword [esp + 0x488]
cmp edx, 0x10
jg 0x47b171
je 0x47b12d
dec edx
cmp edx, 7
ja case.0x47b0ae.3
jmp dword [edx*4 + 0x47b30c]
mov eax, ebx
xor ebp, ebp
sub eax, edi
mov dword [esp + 0x14], ebp
sar eax, 4
imul eax, ecx
jmp 0x47b213
mov eax, dword [esp + 0x30]
sub eax, esi
cdq
sub eax, edx
mov ebp, eax
mov eax, ebx
sub eax, edi
sar ebp, 1
sar eax, 4
mov dword [esp + 0x14], ebp
imul eax, ecx
jmp 0x47b213
mov ebp, dword [esp + 0x30]
mov eax, ebx
sub eax, edi
sub ebp, esi
sar eax, 4
mov dword [esp + 0x14], ebp
imul eax, ecx
jmp 0x47b213
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x14], ebp
jne 0x47b162
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
sub eax, edi
mov dword [esp + 0x28], ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp case.0x47b0ae.3
mov eax, dword [esp + 0x30]
sub eax, esi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp ebx, edi
mov dword [esp + 0x14], ebp
jne 0x47b162
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
sub eax, edi
mov dword [esp + 0x28], ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp case.0x47b0ae.3
mov eax, ebx
sub eax, edi
sar eax, 4
imul eax, ecx
jmp 0x47b20f
lea ecx, [edx - 0x20]
cmp ecx, 0xe0
ja case.0x47b0ae.3
xor edx, edx
mov dl, byte [ecx + 0x47b340]
jmp dword [edx*4 + 0x47b32c]
mov ebp, dword [esp + 0x30]
sub ebp, esi
cmp ebx, edi
mov dword [esp + 0x14], ebp
jne 0x47b203
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
sub eax, edi
mov dword [esp + 0x28], ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp case.0x47b0ae.3
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x14], ebp
jne 0x47b203
jmp 0x47b1eb
mov eax, dword [esp + 0x30]
sub eax, esi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp ebx, edi
mov dword [esp + 0x14], ebp
jne 0x47b203
jmp 0x47b1eb
mov ebp, dword [esp + 0x30]
sub ebp, esi
cmp ebx, edi
mov dword [esp + 0x14], ebp
jne 0x47b203
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp case.0x47b0ae.3
mov eax, ebx
sub eax, edi
sar eax, 4
imul eax, dword [esp + 0x3c]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, 0x3ff
cmp edx, ecx
jle 0x47b228
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x480]
mov ecx, dword [esp + 0x20]
add esi, edx
mov edx, ecx
lea edi, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov byte [esp + edx + 0x6c], 0
add ecx, edx
mov edx, dword [esp + 0x480]
mov dword [esp + 0x40], ecx
cmp byte [ecx + edx], 0xd
jne 0x47b275
cmp byte [ecx + edx + 1], 0xa
jne 0x47b275
add ecx, 2
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x484]
push 0
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [edx]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x64], ecx
add ecx, edx
add eax, ebp
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x60], eax
add eax, ecx
mov ecx, dword [esp + 0x480]
lea edx, [esp + 0x60]
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x74]
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
add ebx, 0x10
cmp ebx, eax
jne 0x47b061
mov eax, dword [esp + 0x48c]
test eax, eax
je 0x47b2e8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
mov dword [eax], edx
mov dword [eax + 4], ecx
push edi
call fcn.004905c3
mov ecx, dword [esp + 0x470]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret