Function at 0x486090
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4dd858
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4860e0
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, esi
jg 0x48613d
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
call fcn.0041c790
add ebp, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x486127
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
lea ebx, [edi + edi]
sub eax, ebx
or eax, ecx
jge 0x486160
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.00416880
mov ebp, dword [esp + 0x14]
test edi, edi
jle 0x48618d
jmp 0x486170
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jae 0x486242
mov cl, byte [eax + esi*2]
mov byte [esi + ebp], cl
add esi, 1
cmp esi, edi
jl 0x486170
cmp edi, 0xffffffff
jne 0x4861ad
test ebp, ebp
jne 0x48619a
xor edi, edi
jmp 0x4861b5
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4861a0
sub eax, edx
mov edi, eax
test edi, edi
jl 0x486238
cmp edi, dword [ebp - 8]
jg 0x486238
mov eax, dword [esp + 0x2c]
mov dword [ebp - 0xc], edi
mov byte [edi + ebp], 0
mov esi, dword [eax]
lea ebx, [ebp - 0x10]
sub esi, 0x10
cmp ebx, esi
je 0x486213
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x48620a
mov edx, dword [ebx]
cmp edx, dword [esi]
jne 0x48620a
mov eax, ebx
call fcn.00414e60
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4861ff
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x2c]
add ebp, 0x10
mov dword [ecx], ebp
jmp 0x486213
mov edi, dword [ebp - 0xc]
push ebp
call fcn.00414ed0
mov dword [esp + 0x24], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x486127
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
jmp 0x486122
push 0x80070057
call fcn.00401340
lea ecx, [esp + 0x18]
push ecx
push 0
sub ebx, esi
push ebx
lea edx, [esi + ebp]
push edx
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [eax + esi*2]
push edx
push 0
push 0x3a8
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jg 0x4862a2
xor ebx, ebx
cmp esi, edi
jge 0x4862a2
lea ebx, [ebx]
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jb 0x486292
mov byte [ebx + ebp], 0x3f
jmp 0x486298
mov al, byte [eax + esi*2]
mov byte [ebx + ebp], al
add esi, 1
add ebx, 1
cmp esi, edi
jl 0x486280
add esi, ebx
cmp esi, 0xffffffff
jne 0x4862c1
test ebp, ebp
jne 0x4862b1
xor esi, esi
jmp 0x4862c9
mov esi, ebp
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x4862b6
sub esi, ecx
test esi, esi
jl 0x486238
cmp esi, dword [ebp - 8]
jg 0x486238
mov eax, dword [esp + 0x2c]
mov dword [ebp - 0xc], esi
mov byte [esi + ebp], 0
mov edi, dword [eax]
lea esi, [ebp - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x48632b
cmp dword [edi + 0xc], 0
jl 0x486322
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x486322
mov eax, esi
call fcn.00414e60
mov ebp, eax
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x486317
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x2c]
add ebp, 0x10
mov dword [eax], ebp
jmp 0x48632b
mov edi, dword [ebp - 0xc]
push ebp
call fcn.00414ed0
test ebx, ebx
setg bl
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486351
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret