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

Disassembly:
push 0xffffffffffffffff
push 0x43b678
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bcf4
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 0x418270
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, esi
jg 0x4182cd
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
call fcn.00409ac0
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 0x4182b7
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 0x4182f0
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.004096f0
mov ebp, dword [esp + 0x14]
test edi, edi
jle 0x41831d
jmp 0x418300
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jae 0x4183d2
mov cl, byte [eax + esi*2]
mov byte [esi + ebp], cl
add esi, 1
cmp esi, edi
jl 0x418300
cmp edi, 0xffffffff
jne 0x41833d
test ebp, ebp
jne 0x41832a
xor edi, edi
jmp 0x418345
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x418330
sub eax, edx
mov edi, eax
test edi, edi
jl 0x4183c8
cmp edi, dword [ebp - 8]
jg 0x4183c8
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 0x4183a3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41839a
mov edx, dword [ebx]
cmp edx, dword [esi]
jne 0x41839a
mov eax, ebx
call fcn.00409c10
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41838f
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 0x4183a3
mov edi, dword [ebp - 0xc]
push ebp
call fcn.00409660
mov dword [esp + 0x24], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4182b7
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
jmp 0x4182b2
push 0x80070057
call fcn.00401000
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 0x418432
xor ebx, ebx
cmp esi, edi
jge 0x418432
lea ebx, [ebx]
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jb 0x418422
mov byte [ebx + ebp], 0x3f
jmp 0x418428
mov al, byte [eax + esi*2]
mov byte [ebx + ebp], al
add esi, 1
add ebx, 1
cmp esi, edi
jl 0x418410
add esi, ebx
cmp esi, 0xffffffff
jne 0x418451
test ebp, ebp
jne 0x418441
xor esi, esi
jmp 0x418459
mov esi, ebp
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x418446
sub esi, ecx
test esi, esi
jl 0x4183c8
cmp esi, dword [ebp - 8]
jg 0x4183c8
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 0x4184bb
cmp dword [edi + 0xc], 0
jl 0x4184b2
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x4184b2
mov eax, esi
call fcn.00409c10
mov ebp, eax
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4184a7
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 0x4184bb
mov edi, dword [ebp - 0xc]
push ebp
call fcn.00409660
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 0x4184e1
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