Function at 0x47e650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ad312
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [0x4ae290]
mov cl, byte [esp + 0x38]
push 0
mov byte [esp + 0xc], cl
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call dword [0x4ae290]
mov edx, dword [0x4ae34c]
lea ecx, [esi + 0x38]
mov byte [esp + 0x30], 1
mov eax, dword [edx]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call dword [0x4ae258]
mov edi, 0x4c8de8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4c8de8
lea ecx, [esp + 0x20]
call dword [0x4ae2c4]
mov edx, dword [0x4ae34c]
add esi, 0x48
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push 0
push esi
call dword [0x4ae248]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049aef0
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
ja 0x47e71d
mov edx, dword [0x4ae34c]
mov ecx, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x10]
call dword [0x4ae250]
jmp 0x47e72c
sub eax, ecx
push 0
push eax
lea ecx, [esp + 0x10]
call dword [0x4ae2e0]
mov ecx, dword [esp + 0xc]
mov edx, dword [0x4ae25c]
test ecx, ecx
jne 0x47e73c
mov ecx, edx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x47e746
mov eax, edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0049af60
add esp, 0xc
test eax, eax
jne 0x47e792
push 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], al
call dword [0x4ae290]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call dword [0x4ae290]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edi, 0x4ca6dc
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [0x4ae34c]
push ebp
mov ebp, dword [esp + 0x40]
not ecx
mov edx, dword [ebp + 8]
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x47e7bf
call dword [0x4ae304]
test esi, esi
jbe 0x47e7fe
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call dword [0x4ae268]
test al, al
je 0x47e7fe
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, esi
add edi, edx
mov edx, ecx
mov esi, 0x4ca6dc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [0x4ae34c]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x18]
mov edi, eax
cmp ecx, edi
jae 0x47e812
mov edi, ecx
sub eax, dword [ebp + 8]
cmp eax, edi
ja 0x47e81f
call dword [0x4ae304]
test edi, edi
jbe 0x47e866
mov ebx, dword [ebp + 8]
push 0
add ebx, edi
mov ecx, ebp
push ebx
call dword [0x4ae268]
test al, al
je 0x47e866
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x47e845
mov esi, dword [0x4ae25c]
mov edx, dword [ebp + 8]
mov ecx, edi
mov edi, dword [ebp + 4]
push ebx
add edi, edx
mov edx, ecx
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, ebp
call dword [0x4ae270]
mov edi, 0x4c6630
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ae34c]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x47e88d
call dword [0x4ae304]
test esi, esi
jbe 0x47e8cc
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call dword [0x4ae268]
test al, al
je 0x47e8cc
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, esi
add edi, edx
mov edx, ecx
mov esi, 0x4c6630
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x14]
xor esi, esi
pop ebp
cmp ecx, esi
pop ebx
je 0x47e8f4
mov al, byte [ecx - 1]
test al, al
je 0x47e8ea
cmp al, 0xff
je 0x47e8ea
dec al
mov byte [ecx - 1], al
jmp 0x47e8f4
dec ecx
push ecx
call fcn.0049b190
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
cmp ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x47e924
mov al, byte [ecx - 1]
test al, al
je 0x47e91a
cmp al, 0xff
je 0x47e91a
dec al
mov byte [ecx - 1], al
jmp 0x47e924
dec ecx
push ecx
call fcn.0049b190
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4