Function at 0x4b1dd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f49b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5470b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 0xc]
mov esi, dword [eax + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0x10
add ecx, 0xf8
add ecx, dword [edi + 0x3c]
add ecx, edx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4b208b
cmp dword [ebx + 0x34], 0
jne 0x4b1e35
mov dword [ebp - 0x18], esi
jmp 0x4b1e44
mov di, word [ebx + 8]
call fcn.004b18e0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebx + 0x34], 0
jne 0x4b1e4e
mov eax, esi
jmp 0x4b1e5a
mov di, word [ebx + 8]
call fcn.004b18e0
mov ecx, dword [ebp - 0x14]
xor edx, edx
cmp edx, dword [ebx + 0x2c]
jb 0x4b1e7e
ja 0x4b1e68
cmp eax, dword [ebx + 0x28]
jb 0x4b1e7e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 0x18]
cmp dword [eax + edx + 0xc], 0
lea eax, [eax + edx + 0xc]
je 0x4b208b
mov dword [ebp - 0x18], eax
jmp 0x4b1ea6
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp dword [ebx + 0x34], 0
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
jne 0x4b1eb5
mov eax, esi
jmp 0x4b1ec1
mov di, word [ebx + 8]
call fcn.004b18e0
mov ecx, dword [ebp - 0x14]
xor edx, edx
cmp edx, dword [ebx + 0x2c]
ja 0x4b1e68
jb 0x4b1ecf
cmp eax, dword [ebx + 0x28]
jae 0x4b1e68
cmp dword [ebx + 0x34], 0
jne 0x4b1ed9
mov eax, esi
jmp 0x4b1ee2
mov di, word [ebx + 8]
call fcn.004b18e0
mov edi, dword [ebx + 0x30]
add edi, eax
call fcn.004c31da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4b20a4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test edi, edi
je 0x4b1f9c
test edi, 0xffff0000
jne 0x4b1f44
movzx esi, di
push esi
call fcn.004cb124
test eax, eax
je 0x4b1fee
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00424e92
mov ebx, dword [ebp - 0x10]
jmp 0x4b1fee
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
dec esi
test esi, esi
jle 0x4b1f9c
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x4b1f79
push esi
lea ecx, [ebp - 0x10]
call fcn.00422524
mov ebx, dword [ebp - 0x10]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [ebx - 8]
jg 0x4b20ae
xor ecx, ecx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], cx
jmp 0x4b1fee
cmp dword [ebx - 0xc], 0
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x4b1fee
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4b1fc9
cmp dword [ebx - 8], 0
jl 0x4b20ae
xor edx, edx
mov dword [ebx - 0xc], 0
mov word [ebx], dx
jmp 0x4b1fee
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b1fdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x4b2003
xor eax, eax
jmp 0x4b200b
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x4b203c
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
push eax
push ecx
lea edx, [ebp - 0x10]
push edx
push 1
push esi
call fcn.00425e92
add esp, 0x14
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x4b2058
cmp ecx, esi
jbe 0x4b2045
call fcn.004d1fe1
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov eax, edi
call fcn.004250ec
add dword [ebp - 0x18], 0x14
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4b207f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
jne 0x4b1ea0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00422000
push 0x80070057
call fcn.00422000
int3