Function at 0x4aff90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov esi, esp
mov dword [esi + 0x118], ebp
lea edi, [esi + 0x120]
mov dword [edi - 4], esp
xor eax, eax
dec eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x467420
mov ecx, dword fs:[0]
mov dword [edi], ecx
mov dword fs:[0], edi
mov dl, 0xff
lea ebx, [esi + 0x24]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea ecx, [esi + 0x17]
mov byte [ecx], dl
mov al, 0xff
lea edx, [esi + 0x16]
mov byte [edx], al
pcmpeqd xmm0, xmm0
lea eax, [esi + 0x50]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
push edx
push ecx
push eax
push dword [ebp + 0x14]
mov dword [esi + 0x18], ebx
push ebx
call fcn.00461310
add esp, 0x14
xor edx, edx
lea ecx, [esi + 0x30]
mov dword [ecx + 8], edx
mov dword [ecx + 4], edx
mov dword [ecx], edx
xor eax, eax
cmp byte [ecx + 0xb], 0
sets al
neg eax
or eax, 0xa
mov dword [edi + 8], edx
push edx
push eax
call fcn.004b1b70
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [esi + 0x30]
xor eax, eax
push eax
call fcn.004ac4d0
lea ecx, [esi + 0x20]
mov dword [esi + 0x10], eax
mov dword [ecx], eax
lea edi, [esi + 0x78]
push 0xa0
push 0xff
push edi
call fcn.004f0310
add esp, 0xc
lea eax, [esi + 0x1c]
mov dword [esi + 0x44], edi
mov dword [eax], edi
lea eax, [esi + 0x48]
xor ecx, ecx
mov dword [eax], ecx
lea eax, [esi + 0xb]
mov byte [eax], 1
lea eax, [esi + 0x15]
mov byte [eax], 0x45
test ebx, ebx
je 0x4b0169
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
je 0x4b012c
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esi + 4], ebx
jne 0x4b02d3
xor eax, eax
test ebx, ebx
je 0x4b0170
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x20]
movzx edx, byte [esi + 0x3b]
test dl, dl
js 0x4b0268
mov ecx, dword [esi + 0x10]
add ecx, edx
cmp eax, ecx
je 0x4b0270
mov cl, byte [esi + 0x16]
mov dl, byte [esi + 0x17]
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
je 0x4b02f1
mov al, byte [eax]
movsx ecx, cl
movsx edx, dl
movsx eax, al
lea edi, [esi + 0x50]
push edi
lea edi, [esi + 0x48]
push edi
lea edi, [esi + 0x1c]
push edi
lea edi, [esi + 0x78]
push edi
lea edi, [esi + 0x24]
push edi
push ecx
push edx
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x10]
lea ecx, [esi + 0x15]
push ecx
lea ecx, [esi + 0xb]
push ecx
push eax
call fcn.004b0650
add esp, 0x30
mov ebx, dword [esi + 4]
test eax, eax
jne 0x4b0177
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
je 0x4b0327
inc eax
mov dword [ebx + 0xc], eax
jmp 0x4b007a
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov dword [esi + 0x128], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x128], 0
mov ecx, ebx
mov dword [esi + 4], ebx
call edi
mov edx, dword [esi + 4]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4b008e
mov ebx, edx
jmp 0x4b008e
xor ebx, ebx
jmp 0x4b008e
mov dword [esi + 0xc], 0
movzx eax, byte [esi + 0x2f]
test al, al
js 0x4b038f
test eax, eax
je 0x4b0191
cmp byte [esi + 0xb], 0
jne 0x4b03cb
push dword [ebp + 0x18]
push dword [esi + 0x20]
push dword [esi + 0x10]
call fcn.004671b0
add esp, 0xc
fstp dword [esi + 0x4c]
mov ebx, dword [esi + 4]
movd xmm0, dword [esi + 0x4c]
mov eax, dword [ebp + 0x1c]
movd dword [eax], xmm0
mov edi, dword [esi + 0x1c]
mov al, byte [esi + 0x2f]
test al, al
js 0x4b0397
movzx edx, al
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x78]
sub edi, ecx
cmp edi, 5
jl 0x4b01da
test edx, edx
jne 0x4b03f1
test ebx, ebx
je 0x4b0264
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
mov eax, dword [ebp + 8]
je 0x4b022f
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x4b039f
test ebx, ebx
jne 0x4b0202
mov ecx, dword [ebp + 0x18]
or byte [ecx], 2
mov dword [eax], ebx
cmp byte [esi + 0x3b], 0
js 0x4b02c0
cmp byte [esi + 0x2f], 0
js 0x4b03b8
mov ecx, dword [esi + 0x120]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov dword [esi + 0x128], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x128], 0
mov ecx, ebx
call edi
mov ebx, dword [esi + 4]
xor ecx, ecx
cmp eax, 0xffffffff
cmove ebx, ecx
mov eax, dword [ebp + 8]
jmp 0x4b01ed
xor ebx, ebx
jmp 0x4b025f
mov edx, dword [esi + 0x34]
jmp 0x4b00b8
mov dword [esi + 0x40], edx
lea eax, [edx + edx]
lea ecx, [esi + 0x30]
push 0
push eax
call fcn.004b1b70
mov eax, dword [esi + 0x38]
mov ecx, SysReAllocString
and eax, ecx
dec eax
cmp byte [esi + 0x3b], 0
mov ecx, 0xa
cmovns eax, ecx
lea ecx, [esi + 0x30]
push 0
push eax
call fcn.004b1b70
mov ebx, dword [esi + 4]
lea ecx, [esi + 0x30]
push 0
call fcn.004ac4d0
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x40]
add ecx, eax
mov dword [esi + 0x20], ecx
jmp 0x4b00c5
push dword [esi + 0x30]
call fcn.004eca8e
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x4b020e
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
cmp eax, dword [ecx + 0x10]
mov eax, dword [esi + 0xc]
je 0x4b0354
test ebx, ebx
je 0x4b00a6
jmp 0x4b0177
mov byte [esi + 0x14], dl
mov byte [esi + 0x40], cl
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov dword [esi + 0x128], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x128], 0
mov ecx, ebx
call edi
mov cl, byte [esi + 0x40]
mov dl, byte [esi + 0x14]
jmp 0x4b00d9
mov eax, dword [ebx]
mov edi, dword [eax + 0x24]
mov dword [esi + 0x128], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x128], 0
mov ecx, ebx
call edi
mov ebx, dword [esi + 4]
jmp 0x4b007a
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax + 0x20]
mov dword [esi + 0x128], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x128], 0
mov ecx, ebx
call edi
mov ebx, dword [esi + 4]
cmp eax, 0xffffffff
mov eax, dword [esi + 0xc]
jne 0x4b02e4
jmp 0x4b009c
mov eax, dword [esi + 0x28]
jmp 0x4b0183
mov edx, dword [esi + 0x28]
jmp 0x4b01c5
mov ecx, dword [edi + 0xc]
cmp ecx, dword [edi + 0x10]
je 0x4b04b0
test ebx, ebx
jne 0x4b01fc
jmp 0x4b0202
push dword [esi + 0x24]
call fcn.004eca8e
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x4b0218
mov eax, dword [esi + 0x1c]
mov ecx, eax
lea edx, [esi + 0x78]
sub ecx, edx
cmp ecx, 0x9f
jg 0x4b0191
mov ecx, dword [esi + 0x48]
lea edx, [eax + 4]
mov dword [esi + 0x1c], edx
mov dword [eax], ecx
jmp 0x4b0191
mov ebx, dword [esi + 0x10]
lea edi, [ebx - 4]
lea ecx, [esi + 0x78]
cmp edi, ecx
seta dl
cmp ecx, ebx
je 0x4b0425
test dl, dl
je 0x4b0425
lea eax, [esi + 0x7c]
mov ecx, edi
mov edx, dword [eax - 4]
mov ebx, dword [ecx]
mov dword [eax - 4], ebx
mov dword [ecx], edx
add ecx, 0xfffffffc
lea edx, [eax + 4]
cmp eax, ecx
mov eax, edx
jb 0x4b040c
mov al, byte [esi + 0x2f]
test al, al
jns 0x4b042f
mov eax, dword [esi + 0x24]
mov dword [esi + 0x18], eax
js 0x4b04ee
lea ecx, [esi + 0x24]
call fcn.004ab0e0
lea ecx, [esi + 0x78]
cmp edi, ecx
jbe 0x4b0481
add eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x18]
movzx ecx, byte [ecx]
mov edx, ecx
dec dl
cmp dl, 0x7d
mov ebx, dword [esi + 4]
ja 0x4b0460
mov edx, dword [esi + 0x44]
cmp dword [edx], ecx
jne 0x4b04a2
mov ecx, eax
mov ebx, dword [esi + 0x18]
sub ecx, ebx
xor edx, edx
cmp ecx, 2
setge dl
add ebx, edx
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0x44]
add ecx, 4
mov dword [esi + 0x44], ecx
cmp ecx, edi
jb 0x4b0447
mov eax, dword [esi + 0x18]
movzx eax, byte [eax]
mov ecx, eax
dec cl
cmp cl, 0x7d
mov ebx, dword [esi + 4]
ja 0x4b01da
mov ecx, dword [edi]
dec ecx
cmp ecx, eax
jb 0x4b01da
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
jmp 0x4b01da
mov eax, dword [edi]
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x128], 0xffffffff
call dword [section..00cfg]
mov dword [esi + 0x128], 0
mov ecx, edi
mov dword [esi + 4], ebx
call dword [esi + 0x10]
mov ebx, dword [esi + 4]
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
jne 0x4b03ab
jmp 0x4b01f8
mov eax, dword [esi + 0x28]
jmp 0x4b043d