Function at 0x40f280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4258e3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x437008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x148], ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edx, str.ffs_setup_convert_jpg_to_bmp
mov byte [ebp - 0x14d], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 0
call fcn.004100a0
test al, al
je 0x40f2ee
mov ecx, ebx
call fcn.0040de40
jmp 0x40f71b
mov edx, str.ffs_setup_show_folder_picker
lea ecx, [ebp - 0x148]
call fcn.004100a0
test al, al
je 0x40f30e
mov ecx, ebx
call fcn.0040e4c0
jmp 0x40f71b
mov dword [ebp - 0x17c], str.BinFreeFileSync_Win32.exe
mov dword [ebp - 0x180], str.BinFreeFileSync_x64.exe
lock inc dword [0x437b00]
xor eax, eax
mov dword [ebp - 0x148], 0x437b0c
mov word [0x437b0c], ax
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.0040d000
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax - 8]
cmp ecx, 1
jb 0x40f419
push 0x5c
lea esi, [eax + ecx*2]
push esi
push eax
call fcn.00412770
cmp eax, esi
je 0x40f413
push ecx
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0x5c
push eax
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x15c]
call fcn.00405e10
add esp, 8
mov esi, eax
mov byte [ebp - 4], 4
mov ecx, dword [esi]
mov edi, dword [ecx - 8]
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.00406eb0
mov eax, dword [esi]
lea ecx, [edi + 1]
mov dword [eax + edi*2], 0x5c
mov eax, dword [esi]
mov dword [eax - 8], ecx
mov edi, dword [esi]
mov dword [esi], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [0x437b00], eax
dec eax
jne 0x40f3e6
push 0x437b00
call fcn.00410cbd
add esp, 4
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x148], edi
test eax, eax
je 0x40f40b
lea ecx, [eax - 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x40f40b
push ecx
call fcn.00410cbd
add esp, 4
mov eax, dword [ebp - 0x144]
jmp 0x40f41c
mov eax, dword [ebp - 0x144]
or esi, 0xffffffff
test eax, eax
je 0x40f435
lea ecx, [eax - 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x40f435
push ecx
call fcn.00410cbd
add esp, 4
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14d]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x18], eax
call fcn.0040f9a0
push eax
lea ecx, [ebp - 0x148]
call fcn.00406720
lea edx, [ebp - 0x148]
lea ecx, [ebp - 0x14c]
call fcn.0040a490
mov edi, eax
mov byte [ebp - 4], 7
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
mov ecx, edi
mov dword [ebp - 0x15c], eax
inc eax
push eax
mov dword [ebp - 0x158], eax
call fcn.00406eb0
mov eax, dword [edi]
mov ecx, dword [ebp - 0x15c]
mov dword [eax + ecx*2], 0x20
mov eax, dword [edi]
mov ecx, dword [ebp - 0x158]
mov dword [eax - 8], ecx
mov eax, dword [edi]
mov dword [edi], 0
mov dword [ebp - 0x144], eax
push ebx
lea edx, [ebp - 0x144]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x154]
call fcn.004087e0
add esp, 4
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x40f4fc
lea ecx, [eax - 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x40f4fc
push ecx
call fcn.00410cbd
add esp, 4
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x40f519
add eax, 0xfffffff4
lock xadd dword [eax], esi
dec esi
jne 0x40f519
push eax
call fcn.00410cbd
add esp, 4
push 0x44
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 0xc
push 0
push eax
call fcn.00413cb0
add esp, 0xc
lea eax, [ebp - 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x154]
push dword [eax - 8]
call fcn.00406eb0
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x1d0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x154]
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f7ac
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x20], eax
call fcn.00412686
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x178], eax
call fcn.00412686
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0x10
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x158], eax
cmp eax, 0x80
ja 0x40f679
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
je 0x40f884
sub eax, 0
je 0x40f692
sub eax, 1
jne 0x40f884
push 1
push eax
push eax
push eax
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
je 0x40f654
cmp dword [ebp - 0x74], 0x12
je 0x40f692
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
jne 0x40f630
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x16c]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x158], eax
cmp eax, 0x80
jbe 0x40f60d
cmp eax, 0x102
je 0x40f884
cmp eax, 0xffffffff
je 0x40f7f4
jmp 0x40f884
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40f83c
mov esi, dword [ebp - 0x144]
call fcn.00412686
lea ecx, [ebp - 0x178]
push dword [ebp - 0x14c]
cmp esi, 0x103
jne 0x40f739
cmp eax, dword [ebp - 0x174]
setg dl
call fcn.004101a0
call fcn.00412686
cmp eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14c]
setg dl
call fcn.00406100
add esp, 8
lea ecx, [ebp - 0x154]
call fcn.00405180
lea ecx, [ebp - 0x148]
call fcn.00405180
mov eax, 0x64
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410a2e
mov esp, ebp
pop ebp
ret 0x10
cmp eax, dword [ebp - 0x174]
setg dl
call fcn.004101a0
call fcn.00412686
cmp eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14c]
setg dl
call fcn.00406100
add esp, 8
lea ecx, [ebp - 0x154]
call fcn.00405180
lea ecx, [ebp - 0x148]
call fcn.00405180
mov eax, esi
jmp 0x40f71b
call sub.KERNEL32.dll_GetLastError
push str.ya_n
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00404f60
push esi
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x44]
call fcn.0040c750
add esp, 4
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xe
call fcn.00401630
push 0x435e84
lea eax, [ebp - 0x90]
push eax
call fcn.00413c3e
call sub.KERNEL32.dll_GetLastError
push 0x4321cc
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00404f60
push esi
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x44]
call fcn.0040c750
add esp, 4
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x12
call fcn.00401630
push 0x435e84
lea eax, [ebp - 0xc0]
push eax
call fcn.00413c3e
call sub.KERNEL32.dll_GetLastError
push 0x42d10c
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00404f60
push esi
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x44]
call fcn.0040c750
add esp, 4
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x19
call fcn.00401630
push 0x435e84
lea eax, [ebp - 0xa8]
push eax
call fcn.00413c3e
push 0x42c974
lea ecx, [ebp - 0x5c]
call fcn.00404d30
lea edx, [ebp - 0x158]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x140]
call fcn.0040a980
push eax
mov edx, 0x42d0f0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xf0]
call fcn.00405fa0
add esp, 4
mov esi, eax
push 0x4321cc
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x15
call fcn.00404f60
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x16
push eax
push esi
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.0040c9a0
add esp, 8
push eax
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x17
call fcn.00401630
push 0x435e84
lea eax, [ebp - 0xd8]
push eax
call fcn.00413c3e
mov ecx, dword [ebp - 0x184]
call fcn.00401650
lea edx, [ebp - 0x154]
mov esi, eax
lea ecx, [ebp - 0x74]
call fcn.00410160
push eax
mov edx, str.Error_starting:
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xf0]
call fcn.00405fa0
add esp, 4
push esi
push eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x1c
call fcn.004016e0
push 0x435ff8
lea eax, [ebp - 0x10c]
push eax
call fcn.00413c3e
mov ecx, dword [ebp - 0x188]
call fcn.00401830
push str.Error_starting_FreeFileSync.
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.00404d30
push esi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x128]
call fcn.004016e0
push 0x435ff8
lea eax, [ebp - 0x128]
push eax
call fcn.00413c3e
int3