Function at 0x4106f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x4c8
push ebx
push ebp
push esi
push edi
push 0x7f02
mov esi, ecx
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov ecx, dword [esi + 0x200]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x48]
push 0x50
push eax
push 0x94
push ecx
call dword [sym.imp.user32.dll_LoadStringA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x200]
lea edx, [esp + 0x48]
push 0x1f4
push edx
push eax
push ecx
call fcn.0044bd70
add esp, 0x10
mov ebx, eax
mov dword [esp + 0x20], ebx
push 0x4ee6a0
push 0x1fb
push ebx
call dword [sym.imp.user32.dll_SetDlgItemTextA]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.user32.dll_SendMessageA]
mov edi, eax
mov ecx, 8
mov eax, 4
xor ebp, ebp
test edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], 0xb
jle 0x4108a6
mov dword [esp + 0x10], ebp
push ebp
mov ecx, esi
call fcn.004124c0
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], eax
cmp ecx, 2
je 0x410892
mov ecx, dword [0x4fb8b8]
test ecx, ecx
je 0x4107e2
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.0041b4f0
xor edi, edi
mov eax, dword [edi*4 + 0x4fb8a8]
test eax, eax
je 0x410848
lea eax, [esp + 0xd0]
push 0x100
push eax
push edi
push ebp
mov ecx, esi
call fcn.00416480
lea ecx, [esp + 0xd0]
push ecx
call dword [sym.imp.kernel32.dll_lstrlen]
cmp eax, 0x50
jle 0x41081f
mov eax, 0x50
jmp 0x41082d
lea edx, [esp + 0xd0]
push edx
call dword [sym.imp.kernel32.dll_lstrlen]
test edi, edi
jne 0x41083e
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 8], 1
jne 0x41083e
add eax, 2
cmp eax, dword [esp + edi*4 + 0x28]
jle 0x410848
mov dword [esp + edi*4 + 0x28], eax
inc edi
cmp edi, 6
jl 0x4107e4
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
jne 0x41088e
mov eax, dword [esp + 0x10]
push edx
cdq
idiv dword [esp + 0x1c]
push eax
push 0x402
push 0x208
push ebx
call dword [sym.imp.user32.dll_SendDlgItemMessageA]
push ebx
call fcn.0044bdb0
mov eax, dword [0x4fc004]
add esp, 4
test eax, eax
jne 0x410d43
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc ebp
add ecx, 0x64
cmp ebp, edi
mov dword [esp + 0x10], ecx
jl 0x4107b2
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xb0]
push edx
push edi
push 0x1019
push eax
mov dword [esp + 0xc0], 0x20
call dword [sym.imp.user32.dll_SendMessageA]
test eax, eax
je 0x4108f7
mov eax, dword [0x4fbe44]
mov ebp, dword [esp + 0xcc]
test eax, eax
jne 0x4108e7
mov ebp, ebx
push ebx
mov ecx, esi
call fcn.00416430
mov dword [esp + ebp*4 + 0x98], eax
inc ebx
inc edi
cmp edi, 6
jl 0x4108ae
mov ecx, dword [esp + 0x20]
push 0x4ee694
push 0x1fb
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.user32.dll_SetDlgItemTextA]
mov dl, byte [0x4fbe40]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x2d5]
mov byte [esp + 0x2d4], dl
mov byte [esp + 0x1d0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x1d1]
lea edx, [esp + 0x1d0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [esp + 0x1d0]
push 0x4ee680
lea ecx, [esp + 0x2d8]
push eax
push ecx
call fcn.00442e30
lea edx, [esp + 0x2e0]
push 0x4ee67c
push edx
call fcn.004c8d77
add esp, 0x14
mov ebp, eax
test ebx, ebx
jle 0x410ac8
lea edi, [esp + 0x98]
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
cmp eax, 5
ja case.default.0x4109b2
jmp dword [eax*4 + 0x410d64]
mov ecx, dword [esi + 0x200]
lea eax, [esp + 0x48]
push 0x50
push eax
push 0x9b
push ecx
call dword [sym.imp.user32.dll_LoadStringA]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
push eax
push 0x4ee674
jmp 0x410aad
mov edx, dword [esi + 0x200]
lea ecx, [esp + 0x48]
push 0x50
push ecx
push 0x7c
push edx
call dword [sym.imp.user32.dll_LoadStringA]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
push ecx
push 0x4ee66c
jmp 0x410aad
mov eax, dword [esi + 0x200]
lea edx, [esp + 0x48]
push 0x50
push edx
push 0x7d
push eax
call dword [sym.imp.user32.dll_LoadStringA]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x48]
push ecx
push edx
push 0x4ee674
jmp 0x410aad
mov ecx, dword [esi + 0x200]
lea eax, [esp + 0x48]
push 0x50
push eax
push 0x7e
push ecx
call dword [sym.imp.user32.dll_LoadStringA]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x48]
push edx
push eax
push 0x4ee66c
jmp 0x410aad
mov edx, dword [esi + 0x200]
lea ecx, [esp + 0x48]
push 0x50
push ecx
push 0x7f
push edx
call dword [sym.imp.user32.dll_LoadStringA]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x48]
push eax
push ecx
push 0x4ee66c
jmp 0x410aad
mov eax, dword [esi + 0x200]
lea edx, [esp + 0x48]
push 0x50
push edx
push 0x80
push eax
call dword [sym.imp.user32.dll_LoadStringA]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
push ecx
push edx
push 0x4ee664
push ebp
call fcn.004c8d0a
add esp, 0x10
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4109a7
push 0x4ee660
push ebp
call fcn.004c8d0a
add esp, 8
test ebx, ebx
jle 0x410b60
lea eax, [esp + 0x98]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [eax*4 + 0x4fb8a8]
test ecx, ecx
je 0x410b4a
mov eax, dword [esp + eax*4 + 0x28]
cmp eax, 0xff
mov edx, eax
jb 0x410b10
mov edx, 0xff
mov ecx, edx
mov eax, 0x2d2d2d2d
mov ebx, ecx
lea edi, [esp + 0xd0]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [esp + edx + 0xd0], 0
lea edx, [esp + 0xd0]
push edx
push 0x4ee658
push ebp
call fcn.004c8d0a
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x410aed
push 0x4ee660
push ebp
call fcn.004c8d0a
mov eax, dword [esp + 0x20]
add esp, 8
xor ebx, ebx
test eax, eax
jle 0x410ce7
mov dword [esp + 0x14], ebx
push ebx
mov ecx, esi
call fcn.004124c0
mov dword [esp + 0x44], eax
mov eax, dword [eax + 8]
cmp eax, 2
je 0x410ccf
cmp eax, 3
je 0x410ccf
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x410c81
lea ecx, [esp + 0x98]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
mov eax, dword [edi*4 + 0x4fb8a8]
test eax, eax
je 0x410c67
lea eax, [esp + 0xd0]
push 0x100
push eax
push edi
push ebx
mov ecx, esi
call fcn.00416480
test edi, edi
jne 0x410c29
mov ecx, dword [esp + 0x44]
cmp dword [ecx + 8], 1
jne 0x410c29
lea edx, [esp + 0xd0]
lea eax, [esp + 0x3d8]
push edx
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
lea ecx, [esp + 0x3d8]
lea edx, [esp + 0xd0]
push ecx
push 0x4ee650
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
cmp edi, 1
je 0x410c4c
cmp edi, 2
jle 0x410c38
cmp edi, 4
jle 0x410c4c
mov ecx, dword [esp + edi*4 + 0x28]
lea eax, [esp + 0xd0]
push eax
push ecx
push 0x4ee674
jmp 0x410c5e
mov eax, dword [esp + edi*4 + 0x28]
lea edx, [esp + 0xd0]
push edx
push eax
push 0x4ee66c
push ebp
call fcn.004c8d0a
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jne 0x410bbc
push 0x4ee660
push ebp
call fcn.004c8d0a
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
add esp, 8
test edx, edx
jne 0x410ccf
mov eax, dword [esp + 0x14]
push edx
cdq
idiv dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
push eax
push 0x402
push 0x208
push edi
call dword [sym.imp.user32.dll_SendDlgItemMessageA]
push edi
call fcn.0044bdb0
mov eax, dword [0x4fc004]
add esp, 4
test eax, eax
jne 0x410d4e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
add ecx, 0x64
cmp ebx, eax
mov dword [esp + 0x14], ecx
jl 0x410b80
push ebp
call fcn.004c8c8d
mov ecx, dword [esi + 8]
add esp, 4
lea edx, [esp + 0x1d0]
lea eax, [esp + 0x2d4]
push 0xa
push edx
push 0
push eax
push 0
push ecx
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x410d2d
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x200]
push 0x20d
push edx
push eax
call fcn.00443860
add esp, 0xc
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.user32.dll_DestroyWindow]
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.user32.dll_SetCursor]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret
push ebp
call fcn.004c8c8d
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret