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

Disassembly:
push 0xffffffffffffffff
push 0x5ad4a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6b06f8]
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 [0x6c7718]
mov edx, dword [eax + 0xc]
mov ecx, 0x6c7718
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 0x4721c1
lea edi, [eax + 1]
lea ebx, [esp + 0x14]
call fcn.00471d20
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 0x47219e
cmp eax, dword [esi + 4]
jae 0x47219e
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [esi]
test edx, edx
jne 0x47217f
xor eax, eax
jmp 0x472193
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472184
sub eax, edi
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
push edx
call fcn.0040b33c
mov byte [esp + 0x28], 0
add dword [esi + 8], 0xffffffff
jne 0x4721bd
xor edi, edi
call fcn.00471e10
push esi
call fcn.00573721
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 0x4721fd
mov edx, dword [esp + 0x34]
test edx, edx
je 0x472309
mov eax, edx
lea esi, [eax + 2]
jmp 0x4721e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4721e0
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, edi
call fcn.0040b33c
jmp 0x472309
lea ecx, [esi - 1]
test ecx, ecx
jl 0x472273
cmp ecx, esi
jg 0x472273
movzx ecx, word [eax + ecx*2]
cmp cx, 0x5c
jne 0x47227d
mov edx, dword [esp + 0x34]
test edx, edx
je 0x47223d
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472220
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, edi
call fcn.0040ce50
jmp 0x472309
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
dec esi
sub eax, esi
or eax, ecx
jge 0x472258
mov eax, esi
mov ecx, edi
call fcn.0040cecf
test esi, esi
jl 0x472273
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x472273
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x472309
push 0x80070057
call fcn.00402d79
mov esi, dword [esp + 0x34]
test esi, esi
je 0x472309
lea edx, [esp + 0x1c]
push 0x670fe8
push edx
mov ecx, edi
call fcn.0040fc53
mov ebx, 3
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, eax
call fcn.0040fc53
add esp, 0x10
mov byte [esp + 0x28], 4
call fcn.004085c5
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 0x4722e1
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 0x472309
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