Function at 0x406100
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get program files directory
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44f3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x4655f0]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4655f0]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0xb9]
push 0
push eax
mov byte [esp + 0xc0], 0
call fcn.0043b390
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 0xbc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0xb4]
push 0x456f6e
push edx
call fcn.004369f3
add esp, 8
test eax, eax
jne 0x4061a1
push str.C:Program_Files
lea eax, [esp + 0xb8]
push 0x104
push eax
call fcn.00437c78
add esp, 0xc
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x20]
call fcn.004017a0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2cc], 0
call fcn.00406d30
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406375
call fcn.00418933
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406210
push 0x80004005
call fcn.00401640
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x4575bc
mov ebx, 1
mov byte [esp + 0x2cc], bl
mov ecx, dword [esp + 0x20]
push str.Fileham.comFileHamBrowser
push ecx
lea edx, [esp + 0x20]
push str._s_s_s
push edx
call fcn.00401d60
mov eax, dword [esp + 0x28]
mov esi, dword [eax - 0xc]
add esp, 0x14
cmp dword [eax - 4], ebx
jle 0x406269
mov eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.004016e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esi, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push ebx
push 0
push str.DisplayIcon
push ecx
call esi
lea edx, [esp + 0x14]
push 0x4578d4
push edx
call fcn.00401d60
mov eax, dword [esp + 0x1c]
mov edi, dword [eax - 0xc]
add esp, 8
cmp dword [eax - 4], ebx
jle 0x4062b0
mov eax, edi
push eax
lea ecx, [esp + 0x18]
call fcn.004016e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add edi, ebx
push edi
push eax
push ebx
push 0
push str.DisplayName
push ecx
call esi
mov edx, dword [esp + 0x1c]
push str.BrowserUninstall.exe
push str.Fileham.comFileHamBrowser
push edx
lea eax, [esp + 0x20]
push str._s_s_s
push eax
call fcn.00401d60
mov edi, dword [esp + 0x28]
mov ebp, dword [edi - 0xc]
add esp, 0x14
cmp dword [edi - 4], ebx
jle 0x406300
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.004016e0
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ebp, 1
push ebp
push edi
push ebx
push 0
push str.UninstallString
push edx
call esi
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x24]
push eax
push 4
push 0
push str.NoModify
push ecx
mov dword [esp + 0x38], ebx
call esi
mov eax, dword [esp + 0x18]
push 4
lea edx, [esp + 0x24]
push edx
push 4
push 0
push str.NoRepair
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x2c8], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406375
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1b8]
push ecx
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x406741
mov dword [esp + 0x90], eax
mov byte [esp + 0x80], al
mov ebx, 0xf
lea eax, [esp + 0x1b8]
mov dword [esp + 0x94], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4063b7
sub eax, edx
push eax
lea edx, [esp + 0x1bc]
push edx
lea ecx, [esp + 0x84]
call fcn.004071b0
push 8
push 0x457984
lea eax, [esp + 0x84]
mov byte [esp + 0x2d0], 2
call fcn.004070c0
mov eax, dword [esp + 0x80]
mov ebp, 0x10
cmp dword [esp + 0x94], ebp
jae 0x40640e
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406439
cmp dword [esp + 0x94], ebp
mov eax, dword [esp + 0x80]
jae 0x406430
lea eax, [esp + 0x80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00418933
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40645d
push 0x80004005
call fcn.00401640
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x2c8], 3
lea eax, [esp + 0x1b8]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406490
sub eax, edx
push eax
lea ecx, [esp + 0x1bc]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004071b0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x9c]
push eax
mov edi, 0x4578ac
mov byte [esp + 0x2d0], 4
call fcn.004075f0
add esp, 8
mov byte [esp + 0x2c8], 6
cmp dword [esp + 0x3c], ebp
jb 0x4064ea
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004181cf
add esp, 4
cmp dword [esp + 0xb0], ebp
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jae 0x406512
lea ecx, [esp + 0x9c]
push 0
push esi
mov edi, 0x4578d4
call fcn.00417fa0
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x6c]
push eax
mov edi, 0x457990
call fcn.004075f0
add esp, 0x10
mov bl, 7
mov byte [esp + 0x2c8], bl
cmp dword [esp + 0x78], ebp
mov eax, dword [esp + 0x64]
jae 0x406550
lea eax, [esp + 0x64]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call esi
test eax, eax
je 0x406572
cmp dword [esp + 0x78], ebp
mov eax, dword [esp + 0x64]
jae 0x40656b
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x1c]
push 0x4575bc
push str.Fileham.comFileHamBrowser
push ecx
lea edx, [esp + 0x20]
push str._s_s_s
push edx
call fcn.00401d60
mov ecx, dword [esp + 0x78]
add esp, 0x14
cmp dword [esp + 0x78], ebp
jae 0x4065a1
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x14]
push 0
push eax
mov edi, 0x4578d4
call fcn.00417fa0
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x50]
push edx
mov edi, 0x4579a4
call fcn.004075f0
add esp, 0x10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2d4], 8
call fcn.00406fe0
mov byte [esp + 0x2c8], bl
cmp dword [esp + 0x5c], ebp
jb 0x4065fc
mov eax, dword [esp + 0x48]
push eax
call fcn.004181cf
add esp, 4
cmp dword [esp + 0x78], ebp
mov eax, dword [esp + 0x64]
mov ebx, 0xf
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jae 0x406620
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
je 0x40663c
cmp dword [esp + 0x78], ebp
mov eax, dword [esp + 0x64]
jae 0x406635
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x1c]
push str.BrowserUninstall.exe
push str.Fileham.comFileHamBrowser
push ecx
lea edx, [esp + 0x20]
push str._s_s_s
push edx
call fcn.00401d60
mov ecx, dword [esp + 0x78]
add esp, 0x14
cmp dword [esp + 0x78], ebp
jae 0x40666b
lea ecx, [esp + 0x64]
mov esi, dword [esp + 0x14]
push 0
push esi
mov edi, 0x4579bc
call fcn.00417fa0
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x2c8], 6
cmp dword [esp + 0x78], ebp
jb 0x4066a0
mov eax, dword [esp + 0x64]
push eax
call fcn.004181cf
add esp, 4
xor edi, edi
mov byte [esp + 0x2c8], 3
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], edi
mov byte [esp + 0x64], 0
jb 0x4066d0
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004181cf
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edi
mov byte [esp + 0x9c], 0
mov byte [esp + 0x2c8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40670a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c8], 0
cmp dword [esp + 0x94], ebp
jb 0x40672b
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004181cf
add esp, 4
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
mov dword [esp + 0x2c8], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40676c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00437030
add esp, 0x2b8
ret