Function at 0x48a740
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b9679
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x6dc778]
mov edx, dword [eax + 0xc]
mov ecx, 0x6dc778
call edx
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x28], esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push esi
mov dword [esp + 0x20], 1
call ebp
cmp eax, esi
je 0x48a821
lea edi, [eax + 1]
lea ebx, [esp + 0x14]
call fcn.0048a380
mov dword [esp + 0x28], 2
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
call ebp
test eax, eax
jbe 0x48a7fe
cmp eax, dword [esi + 4]
jae 0x48a7fe
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [esi]
test edx, edx
jne 0x48a7df
xor eax, eax
jmp 0x48a7f3
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48a7e4
sub eax, edi
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
push edx
call fcn.0040b4fa
mov byte [esp + 0x28], 0
add dword [esi + 8], 0xffffffff
jne 0x48a81d
xor edi, edi
call fcn.0048a470
push esi
call fcn.0058125d
add esp, 4
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
test esi, esi
jne 0x48a85d
mov edx, dword [esp + 0x34]
test edx, edx
je 0x48a969
mov eax, edx
lea esi, [eax + 2]
jmp 0x48a840
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48a840
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, edi
call fcn.0040b4fa
jmp 0x48a969
lea ecx, [esi - 1]
test ecx, ecx
jl 0x48a8d3
cmp ecx, esi
jg 0x48a8d3
movzx ecx, word [eax + ecx*2]
cmp cx, 0x5c
jne 0x48a8dd
mov edx, dword [esp + 0x34]
test edx, edx
je 0x48a89d
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48a880
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, edi
call fcn.0040cdd5
jmp 0x48a969
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
dec esi
sub eax, esi
or eax, ecx
jge 0x48a8b8
mov eax, esi
mov ecx, edi
call fcn.0040ce54
test esi, esi
jl 0x48a8d3
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x48a8d3
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x48a969
push 0x80070057
call fcn.00402d13
mov esi, dword [esp + 0x34]
test esi, esi
je 0x48a969
lea edx, [esp + 0x1c]
push 0x6810d0
push edx
mov ecx, edi
call fcn.004116ea
mov ebx, 3
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, eax
call fcn.004116ea
add esp, 0x10
mov byte [esp + 0x28], 4
call fcn.00408619
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret