Function at 0x417e10
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x511802
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
call edx
test al, al
jne 0x4181ae
mov ebx, 8
cmp dword [esi + 0x58], ebx
jb 0x417e74
mov ecx, dword [esi + 0x44]
jmp 0x417e77
lea ecx, [esi + 0x44]
cmp dword [edi + 0x188], ebx
jb 0x417e87
mov eax, dword [edi + 0x174]
jmp 0x417e8d
lea eax, [edi + 0x174]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ecx
push eax
push str.HomePage
push str.Startup
call edi
cmp dword [esi + 0x58], ebx
jb 0x417eab
mov ecx, dword [esi + 0x44]
jmp 0x417eae
lea ecx, [esi + 0x44]
cmp dword [esi + 0x3c], ebx
jb 0x417eb8
mov eax, dword [esi + 0x28]
jmp 0x417ebb
lea eax, [esi + 0x28]
push ecx
push eax
push str.StartPageType
push str.Startup
call edi
xor ebx, ebx
mov eax, 7
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0x320], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
push 4
mov byte [esp + 0x324], 2
call fcn.004e7d83
add esp, 4
cmp eax, ebx
je 0x417f41
mov edi, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x14], edi
jmp 0x417f47
mov dword [esp + 0x14], ebx
mov edi, ebx
mov dword [esp + 0x1c], edi
lea eax, [esi + 0x338]
push str..ini
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x328], 3
mov dword [esp + 0x20], eax
call fcn.00407690
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0x32c], 4
call fcn.00401610
mov byte [esp + 0x320], 3
cmp dword [esp + 0x38], 8
jb 0x417fa0
mov eax, dword [esp + 0x24]
push eax
call fcn.004e7d7e
add esp, 4
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x78]
mov esi, edi
call fcn.00451cf0
test al, al
jne 0x418050
cmp edi, ebx
je 0x417fdd
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x417fd4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x417fd4
mov dword [edi], 0xffffffff
push edi
call fcn.004e7d7e
add esp, 4
mov esi, 8
cmp dword [esp + 0xb4], esi
jb 0x417ffb
mov edx, dword [esp + 0xa0]
push edx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x54], esi
mov edi, 7
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
jb 0x418029
mov eax, dword [esp + 0x40]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x418049
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004e7d7e
add esp, 4
xor al, al
jmp 0x4181b0
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x48]
call fcn.00401610
lea eax, [esp + 0x3c]
push eax
call fcn.00418590
test al, al
jne 0x4180dc
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
push edx
lea edi, [esp + 0x28]
call fcn.004226f0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x32c], 5
call fcn.00401610
mov edi, 8
mov byte [esp + 0x320], 3
cmp dword [esp + 0x38], edi
jb 0x4180c3
mov eax, dword [esp + 0x24]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x4180d1
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
lea ecx, [esp + 0xbc]
push ecx
push edx
call esi
test eax, eax
setne al
cmp al, bl
je 0x41810b
lea edi, [esp + 0x74]
lea ecx, [esp + 0xbc]
call fcn.00451d70
mov edi, dword [esp + 0x14]
jmp 0x418056
mov eax, dword [edi]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x418125
push eax
call esi
test eax, eax
je 0x418125
mov dword [edi], 0xffffffff
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x418139
push eax
call esi
test eax, eax
je 0x418139
mov dword [edi], 0xffffffff
push edi
call fcn.004e7d7e
mov esi, 8
add esp, 4
cmp dword [esp + 0xb4], esi
jb 0x418160
mov eax, dword [esp + 0xa0]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x54], esi
mov edi, 7
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
jb 0x41818e
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x4181ae
mov edx, dword [esp + 0x5c]
push edx
call fcn.004e7d7e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4