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

Disassembly:
push 0xffffffffffffffff
push 0x5ad0f9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
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 [0x6d50f8]
mov edx, dword [eax + 0xc]
mov ecx, 0x6d50f8
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 0x471d81
lea edi, [eax + 1]
lea ebx, [esp + 0x14]
call fcn.004718e0
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 0x471d5e
cmp eax, dword [esi + 4]
jae 0x471d5e
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [esi]
test edx, edx
jne 0x471d3f
xor eax, eax
jmp 0x471d53
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471d44
sub eax, edi
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
push edx
call fcn.0040b13c
mov byte [esp + 0x28], 0
add dword [esi + 8], 0xffffffff
jne 0x471d7d
xor edi, edi
call fcn.004719d0
push esi
call fcn.00573401
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 0x471dbd
mov edx, dword [esp + 0x34]
test edx, edx
je 0x471ec9
mov eax, edx
lea esi, [eax + 2]
jmp 0x471da0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471da0
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, edi
call fcn.0040b13c
jmp 0x471ec9
lea ecx, [esi - 1]
test ecx, ecx
jl 0x471e33
cmp ecx, esi
jg 0x471e33
movzx ecx, word [eax + ecx*2]
cmp cx, 0x5c
jne 0x471e3d
mov edx, dword [esp + 0x34]
test edx, edx
je 0x471dfd
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471de0
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, edi
call fcn.0040cde8
jmp 0x471ec9
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
dec esi
sub eax, esi
or eax, ecx
jge 0x471e18
mov eax, esi
mov ecx, edi
call fcn.0040ce67
test esi, esi
jl 0x471e33
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x471e33
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x471ec9
push 0x80070057
call fcn.00402d73
mov esi, dword [esp + 0x34]
test esi, esi
je 0x471ec9
lea edx, [esp + 0x1c]
push 0x68a9a4
push edx
mov ecx, edi
call fcn.0040fc0a
mov ebx, 3
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, eax
call fcn.0040fc0a
add esp, 0x10
mov byte [esp + 0x28], 4
call fcn.00408591
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 0x471ea1
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 0x471ec9
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