Function at 0x1004a0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100f2a7a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
mov dl, byte [esp + 0x30]
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push esi
mov dword [ebp + 0x23c], ecx
mov dword [ebp], eax
mov al, byte [esp + 0x38]
lea ecx, [ebp + 0x254]
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x248], ebx
mov byte [ebp + 0x24c], bl
mov dword [ebp + 0x250], ebx
mov dword [esp + 0xc], ebp
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1004df00
mov dl, byte [esp + 0x38]
mov al, byte [esp + 0x38]
lea ecx, [ebp + 0x264]
mov dword [esp + 0x28], ebx
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1004e860
mov dl, byte [esp + 0x38]
mov al, byte [esp + 0x38]
lea ecx, [ebp + 0x274]
mov byte [esp + 0x28], 1
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1004f1c0
mov dl, byte [esp + 0x38]
mov al, byte [esp + 0x38]
lea ecx, [ebp + 0x284]
mov byte [esp + 0x28], 2
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1004fb20
mov cl, byte [esp + 0x38]
mov dl, byte [esp + 0x38]
lea esi, [ebp + 0x294]
mov byte [esp + 0x28], 3
mov byte [esi], cl
lea ecx, [esp + 0x34]
mov byte [esi + 1], dl
mov byte [esi + 8], bl
call fcn.100d0249
mov eax, dword [0x10116c94]
mov byte [esp + 0x28], 4
cmp eax, ebx
jne 0x1004a1b1
push 1
push ebx
mov ecx, esi
call fcn.100514c0
mov dword [0x10116c94], eax
mov dword [eax], ebx
mov eax, dword [0x10116c94]
mov dword [eax + 8], ebx
mov ecx, dword [0x10116c90]
push ebx
inc ecx
mov dword [0x10116c90], ecx
mov ecx, dword [0x10116c94]
push ecx
mov ecx, esi
call fcn.100514c0
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [eax], eax
mov esi, dword [esi + 4]
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 3
mov dword [esi + 8], esi
call fcn.100d02e5
mov dl, byte [esp + 0x38]
mov al, byte [esp + 0x38]
lea ecx, [ebp + 0x2a4]
mov byte [esp + 0x28], 5
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.10050d60
mov eax, dword [ebp]
lea edx, [ebp + 4]
push edx
push 0x100fc3e8
mov ecx, dword [eax]
push eax
mov byte [esp + 0x34], 6
call dword [ecx]
push 0xcc
call fcn.100ddb85
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x28], 7
je 0x1004a249
mov esi, dword [esp + 0x38]
push ebx
push esi
push ebp
mov ecx, eax
call fcn.10047740
jmp 0x1004a24f
mov esi, dword [esp + 0x38]
xor eax, eax
push 0xcc
mov byte [esp + 0x2c], 6
mov dword [ebp + 0x240], eax
call fcn.100ddb85
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x28], 8
je 0x1004a284
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
push ebp
mov ecx, eax
call fcn.10047740
jmp 0x1004a286
xor eax, eax
mov ecx, dword [ebp + 0x240]
push edi
mov byte [esp + 0x2c], 6
mov dword [ebp + 0x244], eax
call fcn.10048310
mov ecx, dword [ebp + 0x244]
call fcn.10048310
mov edi, str.courier
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
lea ecx, [esp + 0x18]
push edi
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], edi
call fcn.1000234e
test al, al
je 0x1004a30a
mov ecx, edi
mov edi, dword [esp + 0x18]
mov eax, ecx
mov esi, str.courier
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [esp + 0x18]
call fcn.100044f0
mov esi, dword [esp + 0x3c]
push ebx
lea edx, [esp + 0x18]
push 0xc
push edx
mov ecx, ebp
mov byte [esp + 0x38], 9
call fcn.1004b260
mov dword [ebp + 0x248], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x2c], 6
je 0x1004a34e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1004a345
cmp al, 0xff
je 0x1004a345
dec al
mov byte [ecx], al
jmp 0x1004a34e
push ecx
call fcn.100d02fa
add esp, 4
mov eax, dword [ebp + 0x248]
mov ecx, dword [ebp + 0x240]
push eax
call fcn.100480d0
mov ecx, dword [ebp + 0x248]
push ecx
mov ecx, dword [ebp + 0x244]
call fcn.100480d0
lea edx, [ebp + 0xfc]
mov ecx, 8
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x20
mov eax, dword [esi]
push edx
push esi
call dword [eax + 0x54]
mov eax, dword [esp + 0x40]
lea edi, [ebp + 0x8b4]
cmp esi, eax
mov dword [edi], ebx
je 0x1004a3c5
mov ecx, dword [esi]
push edi
push 0x100fc3b8
push esi
call dword [ecx]
test eax, eax
jl 0x1004a3c5
mov eax, dword [edi]
lea ecx, [ebp + 0x2b4]
push ecx
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x1004a3c5
mov dword [edi], ebx
mov eax, dword [edi]
pop edi
cmp eax, ebx
jne 0x1004a3ef
lea eax, [ebp + 0x6b4]
mov word [eax - 0x200], bx
mov word [eax], bx
mov word [eax - 0x400], bx
inc ebx
add eax, 2
cmp ebx, 0x100
jl 0x1004a3d2
mov ecx, dword [esp + 0x20]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14