Function at 0x10058090
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1b76
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x28], esi
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], 0
call fcn.1003aaa0
test eax, eax
je 0x100582c4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
lea edx, [ebp - 0x18]
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.10057630
mov esi, dword [ebp - 0x18]
add esp, 8
cmp dword [esi - 0xc], 0
jne 0x10058142
call fcn.1003aaa0
test eax, eax
je 0x100582c4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x100582a6
lea ecx, [ebp - 0x10]
call fcn.10058460
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x100581ab
call fcn.1003aaa0
test eax, eax
je 0x100582c4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005819c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
jmp 0x1005829e
push 0x11
push str.__o_enumsolutions
lea ecx, [ebp - 0x10]
call fcn.1003f390
mov ebx, dword [ebp + 8]
lea ecx, [esi - 0x10]
or edi, 0xffffffff
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebx]
sub edx, 0x10
mov dword [ebp - 0x20], edx
cmp ecx, edx
je 0x1005821a
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x1c], eax
jl 0x1005820f
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005820f
call fcn.10040870
mov edx, dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 0x24], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10058208
mov esi, dword [ebp - 0x20]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebx], eax
jmp 0x1005821a
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.1003f950
push 1
push 0x100c8670
mov ecx, ebx
call fcn.1003f390
push 0xe
push str.Solutions.list
mov ecx, ebx
call fcn.1003f390
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005824a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x10]
push ecx
push dword [ebx]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.10055d20
mov esi, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, esi
call fcn.10040870
mov ebx, dword [ebp - 0x30]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10058297
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x100582b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100374f0
int3