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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6027b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x54c799
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.005d31c6
call fcn.0054c7c0
add esp, 4
test eax, eax
je 0x54c799
lea eax, [ebp - 0x478]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x54c799
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.005d31c6
lea eax, [ebp - 0x18]
push eax
call fcn.0054ef20
add esp, 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005d39ac
push 0x1b443f8
lea ecx, [ebp - 0x14]
call fcn.005d34bf
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.004af4b3
add esp, 8
test eax, eax
je 0x54c5aa
push str.jpeg
lea ecx, [ebp - 0x1c]
call fcn.005d34bf
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
push eax
push edx
call fcn.004af4b3
add esp, 8
lea ecx, [ebp - 0x1c]
test eax, eax
sete bl
call fcn.005d3451
test bl, bl
je 0x54c5ac
mov bl, 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005d3451
test bl, bl
je 0x54c66f
push 8
call fcn.005d3192
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x54c5e0
mov ecx, eax
call fcn.005b54c0
mov esi, eax
jmp 0x54c5e2
xor esi, esi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 1
call fcn.005d31c6
mov ecx, esi
call fcn.005b5720
lea ecx, [ebp - 0x478]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005d34bf
push str.temp.bmp
lea edx, [ebp - 0x14]
mov bl, 4
push eax
push edx
mov byte [ebp - 4], bl
call fcn.005d36e6
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.005d358a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005d3451
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005d3451
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.005d31c6
mov ecx, esi
call fcn.005b5610
test esi, esi
je 0x54c66f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x2c]
call fcn.005d3b7e
mov ecx, dword [ebp + 0xc]
push 0
push 0x20
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.005d3d30
push 0
push 0x1000
lea edx, [ebp - 0x2c]
push 1
push edx
lea ecx, [ebp - 0x78]
call fcn.005dbb6d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.005d3b12
push 0x98
mov byte [ebp - 4], 9
call fcn.005d3192
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 0xa
je 0x54c6f7
lea ebx, [ebp - 0x78]
xor esi, esi
push ebx
push esi
sub esp, 0x10
xor eax, eax
mov ebx, esp
mov edx, 0x64
mov edi, edx
mov dword [ebx], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00542c40
mov esi, eax
jmp 0x54c6f9
xor esi, esi
mov dword [ebp - 4], 7
call fcn.005d3b50
lea ecx, [ebp - 0x78]
call fcn.005dbcd1
lea ecx, [ebp - 0x2c]
call fcn.005d3f4b
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.005dbc49
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.005d3c73
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005d3451
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.005d3451
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.005d3451
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret