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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x430fd1
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
mov ebx, dword [esp + 0x170]
test ebx, ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x405a7c
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x405a7c
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x405648
push 0x14
call fcn.004277b8
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x174], 0
je 0x405638
mov ecx, eax
call fcn.00408480
jmp 0x40563a
xor eax, eax
mov dword [esp + 0x174], 0xffffffff
mov dword [esi + 0x10], eax
call fcn.004282b2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x174], 1
call fcn.004282b2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x174], 2
call fcn.004282b2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov byte [esp + 0x68], 0
mov ecx, 0x40
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
push eax
push 0x104
mov byte [esp + 0x17c], 3
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402010
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0x28]
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
mov byte [esp + 0x188], 4
call fcn.00401b40
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004053a0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00401de0
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
call ebx
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.004158c7
add esp, 8
cmp eax, 0xffffffff
je 0x405783
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
push 2
push ecx
call fcn.004158c7
add esp, 8
cmp eax, 0xffffffff
je 0x40575f
mov edx, dword [esp + 0x10]
push edx
call ebx
test eax, eax
jne 0x405783
push 4
lea ecx, [esp + 0x14]
push str._tmp
call fcn.00401de0
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.004158c7
add esp, 8
cmp eax, 0xffffffff
jne 0x405740
mov ebp, 0xf
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov eax, dword [edi - 4]
mov ebx, dword [edi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, ebx
or eax, ecx
mov byte [esp + 0x174], 5
jge 0x4057c5
push ebx
lea ecx, [esp + 0x18]
call fcn.00401af0
mov edi, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.00404850
mov eax, dword [esp + 0x48]
mov ebx, 0x10
add esp, 0xc
cmp eax, ebx
jb 0x4057ed
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x4057f1
xor eax, eax
jmp 0x4057ff
lea edx, [esp + 0x28]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057f6
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401ce0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 4]
mov edi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, edi
or eax, ecx
mov byte [esp + 0x174], 6
jge 0x40584b
push edi
lea ecx, [esp + 0x1c]
call fcn.00401af0
mov edx, dword [esp + 0x18]
push edi
push edx
lea edx, [esp + 0x48]
push edx
call fcn.00404850
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp eax, ebx
jb 0x40586e
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x405872
xor eax, eax
jmp 0x405880
lea ecx, [esp + 0x44]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405877
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401ce0
mov eax, dword [esi + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x64], esp
mov edi, esp
push eax
call fcn.00401b40
add eax, 0x10
mov dword [edi], eax
mov ebp, dword [esp + 0x20]
add ebp, 0xfffffff0
mov dword [esp + 0x70], esp
mov edi, esp
push ebp
mov byte [esp + 0x184], 7
call fcn.00401b40
add eax, 0x10
mov dword [edi], eax
mov ebx, dword [esp + 0x28]
add ebx, 0xfffffff0
mov dword [esp + 0x70], esp
mov edi, esp
push ebx
mov byte [esp + 0x188], 8
call fcn.00401b40
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push eax
mov byte [esp + 0x18c], 9
mov dword [esp + 0x34], eax
call fcn.00401b40
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x10]
add esp, 4
mov byte [esp + 0x188], 6
call fcn.00409b30
mov edi, eax
test edi, edi
je 0x405971
mov ecx, dword [esi + 0x10]
call fcn.00408110
test eax, eax
jbe 0x405971
mov ecx, dword [esp + 0x17c]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x10]
call fcn.00408110
mov edx, dword [esp + 0x17c]
mov dword [edx + 8], eax
mov edx, dword [esi + 4]
xor ecx, ecx
mov dword [esi + 0x38], ecx
test edx, edx
je 0x405971
mov eax, dword [esi + 8]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x405971
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 8]
add dword [esi + 0x38], eax
inc ecx
jmp 0x405955
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx + 4]
mov eax, dword [edx - 0xc]
add ecx, 4
test eax, eax
jne 0x405991
mov eax, dword [esi + 0x10]
add eax, 0x10
push eax
call fcn.00401ee0
mov eax, dword [esp + 0x17c]
mov ecx, dword [eax + 8]
cmp dword [esp + 0x58], 0x10
mov dword [esi + 0x30], ecx
jb 0x4059b2
mov edx, dword [esp + 0x44]
push edx
call fcn.004277e3
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov esi, 0xf
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x4059dc
mov eax, dword [esp + 0x28]
push eax
call fcn.004277e3
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x174], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x174], 2
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405a33
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov byte [esp + 0x174], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405a52
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x174], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
jmp 0x405a7e
xor eax, eax
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x168
ret 4