Function at 0x411220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a878
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x20], esi
jge 0x41127f
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
add ebx, 1
test al, al
jne 0x411272
sub ebx, ecx
cmp ebx, esi
jg 0x4112c9
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
call fcn.00401b40
add ebp, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4112b3
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, ebx
or eax, ecx
jge 0x4112e9
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.00401d50
mov ebp, dword [esp + 0x14]
test ebx, ebx
jle 0x41130b
lea ecx, [ecx]
mov al, byte [esi + edi]
cmp al, 0x80
jae 0x4113cb
movsx cx, al
mov word [ebp + esi*2], cx
add esi, 1
cmp esi, ebx
jl 0x4112f0
cmp ebx, 0xffffffff
mov eax, ebx
jne 0x41132f
test ebp, ebp
jne 0x41131a
xor eax, eax
jmp 0x411337
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411320
sub eax, edx
sar eax, 1
test eax, eax
jl 0x4113c1
cmp eax, dword [ebp - 8]
jg 0x4113c1
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
lea edi, [ebp - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x41139c
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x411393
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x411393
mov eax, edi
call fcn.00401da0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x411388
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ebp, 0x10
mov dword [ecx], ebp
jmp 0x41139c
mov ebx, dword [ebp - 0xc]
push ebp
call fcn.00401cb0
mov dword [esp + 0x20], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4112b3
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
jmp 0x4112ae
push 0x80070057
call fcn.00401ff0
mov eax, ebx
sub eax, esi
push eax
lea ecx, [ebp + esi*2]
push ecx
push eax
lea edx, [esi + edi]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x41141a
xor edi, edi
cmp esi, ebx
jge 0x41141a
mov eax, dword [esp + 0x2c]
mov al, byte [esi + eax]
cmp al, 0x80
jb 0x411407
add esi, 1
mov word [ebp + edi*2], 0x3f
jmp 0x411410
movsx cx, al
mov word [ebp + edi*2], cx
add esi, 1
add edi, 1
cmp esi, ebx
jl 0x4113f0
lea eax, [edi + esi]
cmp eax, 0xffffffff
jne 0x41143f
test ebp, ebp
jne 0x41142a
xor eax, eax
jmp 0x411447
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411430
sub eax, edx
sar eax, 1
test eax, eax
jl 0x4113c1
cmp eax, dword [ebp - 8]
jg 0x4113c1
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
mov eax, dword [esp + 0x28]
mov ebx, dword [eax]
lea esi, [ebp - 0x10]
sub ebx, 0x10
cmp esi, ebx
je 0x4114ac
cmp dword [ebx + 0xc], 0
jl 0x4114a3
mov edx, dword [esi]
cmp edx, dword [ebx]
jne 0x4114a3
mov eax, esi
call fcn.00401da0
mov ebp, eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411498
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
add ebp, 0x10
mov dword [ecx], ebp
jmp 0x4114ac
mov ebx, dword [ebp - 0xc]
push ebp
call fcn.00401cb0
test edi, edi
setg bl
mov dword [esp + 0x20], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4114d2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret