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

Disassembly:
push ebp
sub esp, 0x464
lea ebp, [esp - 4]
mov eax, dword [0x10139d20]
xor eax, ebp
mov dword [ebp + 0x464], eax
push 0x44
mov eax, 0x100ea837
call fcn.100773f7
mov eax, dword [ebp + 0x470]
push eax
mov esi, ecx
call fcn.10003cc0
mov ecx, esi
call fcn.10037727
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x10037a27
lea ecx, [ebp - 0x18]
call fcn.10001bc0
mov edi, 0x206
push edi
lea eax, [ebp + 0x25e]
push ebx
push eax
mov dword [ebp - 4], ebx
mov word [ebp + 0x25c], bx
call fcn.10077be0
push edi
lea eax, [ebp + 0x56]
push ebx
push eax
mov word [ebp + 0x54], bx
call fcn.10077be0
add esp, 0x18
lea eax, [ebp + 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10037a1b
lea eax, [esi + 0x20]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.1001b49e
pop ecx
pop ecx
mov eax, dword [ebp + 0x3c]
push 8
pop edi
cmp dword [ebp + 0x50], edi
mov byte [ebp - 4], 1
jae 0x100378dd
lea eax, [ebp + 0x3c]
lea ecx, [ebp + 0x54]
push ecx
push eax
call fcn.10019d63
pop ecx
pop ecx
lea eax, [ebp + 0x25c]
push eax
lea ecx, [ebp - 0x34]
call fcn.10001df0
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
mov byte [ebp - 4], 2
jae 0x10037907
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x50]
call fcn.10001df0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.10001c60
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10001fc0
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10001fc0
lea eax, [ebp + 0x25c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.10001df0
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
call fcn.10003cf0
mov ecx, esi
call fcn.10037694
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
call fcn.1001b179
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 4]
mov byte [ebp - 4], 5
jae 0x10037983
lea ecx, [ebp + 4]
cmp dword [esi + 0x54], edi
jb 0x1003798d
mov eax, dword [esi + 0x40]
jmp 0x10037990
lea eax, [esi + 0x40]
push ebx
push ecx
push eax
call fcn.10029409
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [ebp + 0x34], edi
jae 0x100379a6
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xd]
call fcn.100507bc
cmp dword [esi + 0x8c], edi
mov byte [ebp - 4], 6
jb 0x100379c6
mov ecx, dword [esi + 0x78]
jmp 0x100379c9
lea ecx, [esi + 0x78]
cmp dword [esi + 0x70], edi
jb 0x100379d3
mov eax, dword [esi + 0x5c]
jmp 0x100379d6
lea eax, [esi + 0x5c]
cmp dword [esi + 0x54], edi
jb 0x100379e0
mov esi, dword [esi + 0x40]
jmp 0x100379e3
add esi, 0x40
push ecx
push eax
push esi
lea ecx, [ebp - 0xd]
call fcn.10036f43
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 5
call sym.Plugin.dll_CleanUpPluginSystemManager
push ebx
push 1
lea ecx, [ebp]
call fcn.10001f70
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.10001fc0
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.10001fc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001c50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x464]
xor ecx, ebp
call fcn.100773e8
add ebp, 0x468
leave
ret 4