Function at 0x4085d0
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430678
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x44c060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x400
push eax
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
cmp dword [0x44db30], 0
je 0x408790
cmp dword [esi + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 0x44db20
jne 0x408678
cmp dword [0x44db34], 8
mov eax, edi
cmovae eax, dword [0x44db20]
push eax
push 0
push 0x437a48
push str.scan
call ebx
mov dword [esi + 8], eax
test eax, eax
je 0x408790
cmp dword [0x44db34], 8
mov eax, edi
cmovae eax, dword [0x44db20]
push eax
push 0x28
lea eax, [ebp - 0x60]
push eax
push 0
push str.maxzipsize
push str.scan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4086aa
mov dword [esi + 0xc], eax
jmp 0x4086d0
push 0xa
lea eax, [ebp - 0x60]
push 0
push eax
call dword [sym.imp.MSVCR110.dll__wcstoui64]
add esp, 0xc
test edx, edx
jne 0x4086c9
cmp eax, 0xffffffff
ja 0x4086c9
mov dword [esi + 0xc], eax
jmp 0x4086d0
mov dword [esi + 0xc], 0xffffffff
cmp dword [0x44db34], 8
mov eax, edi
cmovae eax, dword [0x44db20]
push eax
push 0
push str.maxzipdepth
push str.scan
call ebx
mov dword [esi + 0x10], eax
cmp dword [0x44db34], 8
mov eax, edi
cmovae eax, dword [0x44db20]
push eax
push 0
push str.objects
push str.target
call ebx
mov dword [esi + 0x18], eax
cmp dword [0x44db34], 8
mov eax, edi
cmovae eax, dword [0x44db20]
push eax
push 0
push str.scanfiletype
push str.scan
call ebx
mov dword [esi + 0x14], eax
cmp dword [0x44db34], 8
mov eax, edi
cmovae eax, dword [0x44db20]
push eax
push 0x201
lea eax, [ebp - 0x464]
push eax
push 0
push str.path
push str.target
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi + 8]
cmp eax, 3
je 0x408772
cmp eax, 4
jne 0x408797
cmp dword [esi + 0x18], 0
jne 0x408797
cmp word [ebp - 0x464], 0
jne 0x408797
push str.No_Scan_Target.
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 4
xor eax, eax
jmp 0x408874
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x468]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
push 0x7c
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::ReverseFind_wchar_t_const]
push eax
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x468]
call dword [sym.imp.ouilibx.dll_public:_class_OUI::COString___thiscall_OUI::COString::Left_int_]
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov edx, eax
cmp word [edx], 0
jne 0x4087eb
xor ecx, ecx
jmp 0x4087ff
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4087f0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00403d00
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
lea ecx, [ebp - 0x46c]
call ebx
cmp dword [esi + 8], 4
jne 0x408860
cmp dword [0x44db34], 8
mov eax, edi
cmovae eax, dword [0x44db20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408860
cmp dword [0x44db34], 8
cmovae edi, dword [0x44db20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.DeleteFile__s_Ret_False__ErrCode__d.
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 0xffffffff
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e0d6
mov esp, ebp
pop ebp
ret