Function at 0x473820
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x50cfa1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x1c], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4738d9
call fcn.0040d32d
mov ecx, eax
test ecx, ecx
je 0x473ae7
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x52b690
jne 0x473ad7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea ecx, [eax + 0x10]
mov dword [esi], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004d5b75
lea esp, [ebp + 0x414]
pop ebp
ret
lea eax, [ebp + 0x208]
push eax
push 0
push 0x537678
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x473921
call fcn.0040d32d
test eax, eax
je 0x473ae7
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, 0x52b690
jne 0x473ade
lock inc dword [eax + 0x14]
add eax, 8
add eax, 0x10
mov dword [esi], eax
jmp 0x4738a6
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040d32d
mov ecx, eax
test ecx, ecx
je 0x473ae7
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x52b690
jne 0x473af1
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 3
lea eax, [ebp + 0x208]
test eax, 0xffff0000
jne 0x47397d
movzx eax, ax
mov ecx, esi
push eax
call fcn.0040d58d
jmp 0x4738a6
push eax
call fcn.004dbc76
mov edi, dword [esi]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x473a18
lea ecx, [edi - 0x10]
mov ebx, dword [ecx]
cmp dword [ecx + 4], eax
je 0x4738a6
cmp dword [ecx + 0xc], eax
lea edx, [ecx + 0xc]
jge 0x4739c0
cmp dword [edi - 8], eax
jl 0x473acd
mov dword [edi - 0xc], eax
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
jmp 0x4738a6
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4739ed
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x52b690
jne 0x473af8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
cmp eax, 0x52b690
jne 0x473b01
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x4738a6
add eax, 0x10
mov dword [esi], eax
jmp 0x4738a6
mov eax, dword [edi - 0xc]
lea edx, [ebp + 0x208]
sub edx, edi
mov dword [ebp - 0x14], eax
sar edx, 1
mov dword [ebp - 0x18], edx
test ebx, ebx
js 0x473acd
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x473a51
push ebx
mov ecx, esi
call fcn.0040d6fc
mov edi, dword [esi]
mov edx, dword [ebp - 0x18]
lea ecx, [ebx + ebx]
mov eax, dword [edi - 8]
cmp edx, dword [ebp - 0x14]
ja 0x473a9e
lea edx, [edi + edx*2]
test ecx, ecx
je 0x473ab6
test edx, edx
jne 0x473a79
call fcn.004dbdb4
mov dword [eax], 0x16
call fcn.004dbc16
jmp 0x473ab3
add eax, eax
cmp eax, ecx
jae 0x473a91
call fcn.004dbdb4
mov dword [eax], 0x22
call fcn.004dbc16
jmp 0x473ab3
push ecx
push edx
push edi
call fcn.004d7810
add esp, 0xc
jmp 0x473ab3
push ecx
lea ecx, [ebp + 0x208]
push ecx
lea edx, [eax + eax]
mov ecx, edi
call fcn.0040d7d5
add esp, 8
lea ecx, [ebx + ebx]
mov eax, dword [esi]
cmp ebx, dword [eax - 8]
jg 0x473acd
mov dword [eax - 0xc], ebx
xor edx, edx
mov eax, dword [esi]
mov word [ecx + eax], dx
jmp 0x4738a6
push 0x80070057
call fcn.0040d85a
call edx
jmp 0x4738a1
mov ecx, eax
call edx
jmp 0x47391a
push 0x80004005
call fcn.0040d85a
call edx
jmp 0x473954
mov ecx, edx
call edi
jmp 0x4739ed
mov ecx, ebx
call edx
jmp 0x473a0e