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

Disassembly:
push 0xffffffffffffffff
push 0x4dd698
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 [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
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 0x485fc0
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, esi
jg 0x48601d
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
call fcn.0041c840
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 0x486007
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 0x486040
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.00416960
mov ebp, dword [esp + 0x14]
test edi, edi
jle 0x48606d
jmp 0x486050
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jae 0x486122
mov cl, byte [eax + esi*2]
mov byte [esi + ebp], cl
add esi, 1
cmp esi, edi
jl 0x486050
cmp edi, 0xffffffff
jne 0x48608d
test ebp, ebp
jne 0x48607a
xor edi, edi
jmp 0x486095
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x486080
sub eax, edx
mov edi, eax
test edi, edi
jl 0x486118
cmp edi, dword [ebp - 8]
jg 0x486118
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 0x4860f3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4860ea
mov edx, dword [ebx]
cmp edx, dword [esi]
jne 0x4860ea
mov eax, ebx
call fcn.00414f30
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4860df
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 0x4860f3
mov edi, dword [ebp - 0xc]
push ebp
call fcn.00414fb0
mov dword [esp + 0x24], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x486007
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
jmp 0x486002
push 0x80070057
call fcn.00401350
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 0x486182
xor ebx, ebx
cmp esi, edi
jge 0x486182
lea ebx, [ebx]
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jb 0x486172
mov byte [ebx + ebp], 0x3f
jmp 0x486178
mov al, byte [eax + esi*2]
mov byte [ebx + ebp], al
add esi, 1
add ebx, 1
cmp esi, edi
jl 0x486160
add esi, ebx
cmp esi, 0xffffffff
jne 0x4861a1
test ebp, ebp
jne 0x486191
xor esi, esi
jmp 0x4861a9
mov esi, ebp
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x486196
sub esi, ecx
test esi, esi
jl 0x486118
cmp esi, dword [ebp - 8]
jg 0x486118
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 0x48620b
cmp dword [edi + 0xc], 0
jl 0x486202
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x486202
mov eax, esi
call fcn.00414f30
mov ebp, eax
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4861f7
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 0x48620b
mov edi, dword [ebp - 0xc]
push ebp
call fcn.00414fb0
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 0x486231
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