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

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x7f02
mov ebp, ecx
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0x90]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x4c]
push 0x50
push eax
push 0x94
push ecx
call esi
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x90]
lea edx, [esp + 0x4c]
push 0x1f4
push edx
push eax
push ecx
call fcn.0043ff40
add esp, 0x10
mov dword [esp + 0x20], eax
push str.Scanning...
push 0x71
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, dword [ebp + 8]
push ebx
push ebx
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, 8
mov ecx, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 0xb
jle 0x4122d6
mov dword [esp + 0x14], ebx
push ebx
mov ecx, ebp
call fcn.004136f0
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], eax
cmp ecx, 2
je 0x4122be
mov ecx, dword [0x4caaec]
test ecx, ecx
je 0x41220a
push 0
push 0
push 0
push eax
mov ecx, ebp
call fcn.0041b840
xor edi, edi
mov eax, dword [edi*4 + 0x4caadc]
test eax, eax
je 0x412274
lea eax, [esp + 0xd4]
push 0x100
push eax
push edi
push ebx
mov ecx, ebp
call fcn.00417380
lea ecx, [esp + 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x50
jle 0x412247
mov eax, 0x50
jmp 0x412255
lea edx, [esp + 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test edi, edi
jne 0x412266
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 4], 1
jne 0x412266
add eax, 2
mov edx, dword [esp + edi*4 + 0x2c]
lea ecx, [esp + edi*4 + 0x2c]
cmp eax, edx
jle 0x412274
mov dword [ecx], eax
inc edi
cmp edi, 6
jl 0x41220c
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
jne 0x4122be
mov eax, dword [esp + 0x14]
push edx
cdq
idiv dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push eax
push 0x402
push 0x82
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
call fcn.0043ff80
mov eax, dword [0x4cb0dc]
add esp, 4
test eax, eax
jne 0x412790
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ebx
add ecx, 0x64
cmp ebx, eax
mov dword [esp + 0x14], ecx
jl 0x4121da
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [ebp + 8]
lea edx, [esp + 0xb4]
push edx
push edi
push 0x1019
push eax
mov dword [esp + 0xc4], 0x20
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x412333
mov eax, dword [0x4caf78]
mov ebx, dword [esp + 0xd0]
test eax, eax
jne 0x412317
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00417330
mov dword [esp + ebx*4 + 0x9c], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
inc edi
cmp edi, 6
jl 0x4122dc
mov edx, dword [esp + 0x20]
push str.Writing...
push 0x71
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dl, byte [0x4caf4c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d9]
mov byte [esp + 0x2d8], dl
mov byte [esp + 0x1d4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1d4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x1d4]
push str.Folder_Contents.txt
lea edx, [esp + 0x2dc]
push ecx
push edx
call fcn.0043c6e0
add esp, 0xc
lea eax, [esp + 0x2d8]
push 0x4be8b8
push eax
call fcn.00499030
mov edi, dword [esp + 0x1c]
add esp, 8
test edi, edi
mov ebx, eax
jle 0x4124f9
lea ecx, [esp + 0x9c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp eax, 5
ja case.default.0x4123f6
jmp dword [eax*4 + 0x4127b0]
mov ecx, dword [ebp + 0x90]
lea eax, [esp + 0x4c]
push 0x50
push eax
push 0x7b
push ecx
call esi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x4c]
push edx
push eax
push str.__s
jmp 0x4124d6
mov edx, dword [ebp + 0x90]
lea ecx, [esp + 0x4c]
push 0x50
push ecx
push 0x7c
push edx
call esi
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x4c]
push eax
push ecx
push str._s
jmp 0x4124d6
mov eax, dword [ebp + 0x90]
lea edx, [esp + 0x4c]
push 0x50
push edx
push 0x7d
push eax
call esi
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x4c]
push ecx
push edx
push str.__s
jmp 0x4124d6
mov ecx, dword [ebp + 0x90]
lea eax, [esp + 0x4c]
push 0x50
push eax
push 0x7e
push ecx
call esi
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x4c]
push edx
push eax
push str._s
jmp 0x4124d6
mov edx, dword [ebp + 0x90]
lea ecx, [esp + 0x4c]
push 0x50
push ecx
push 0x7f
push edx
call esi
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x4c]
push eax
push ecx
push str._s
jmp 0x4124d6
mov eax, dword [ebp + 0x90]
lea edx, [esp + 0x4c]
push 0x50
push edx
push 0x80
push eax
call esi
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
push ecx
push edx
push 0x4be8a0
push ebx
call fcn.00498fa0
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x4123e7
push 0x4be89c
push ebx
call fcn.00498fa0
add esp, 8
test edi, edi
jle 0x412593
lea eax, [esp + 0x9c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
shl eax, 2
mov ecx, dword [eax + 0x4caadc]
test ecx, ecx
je 0x41257d
mov eax, dword [esp + eax + 0x2c]
cmp eax, 0xff
mov edx, eax
jb 0x412543
mov edx, 0xff
mov ecx, edx
mov eax, 0x2d2d2d2d
mov esi, ecx
lea edi, [esp + 0xd4]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov byte [esp + edx + 0xd4], 0
lea edx, [esp + 0xd4]
push edx
push 0x4be894
push ebx
call fcn.00498fa0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x41251e
push 0x4be89c
push ebx
call fcn.00498fa0
mov eax, dword [esp + 0x24]
add esp, 8
xor edi, edi
test eax, eax
mov dword [esp + 0x28], edi
jle 0x412734
mov dword [esp + 0x18], edi
push edi
mov ecx, ebp
call fcn.004136f0
mov dword [esp + 0x48], eax
mov eax, dword [eax + 4]
cmp eax, 2
je 0x412718
cmp eax, 3
je 0x412718
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4126c6
lea ecx, [esp + 0x9c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov esi, dword [edx]
lea edi, [esi*4]
mov eax, dword [edi + 0x4caadc]
test eax, eax
je 0x4126a8
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xd4]
push 0x100
push eax
push esi
push ecx
mov ecx, ebp
call fcn.00417380
test esi, esi
jne 0x41266a
mov edx, dword [esp + 0x48]
cmp dword [edx + 4], 1
jne 0x41266a
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x3dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x3dc]
lea eax, [esp + 0xd4]
push edx
push 0x4be88c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, 1
je 0x41268d
cmp esi, 2
jle 0x412679
cmp esi, 4
jle 0x41268d
mov edx, dword [esp + edi + 0x2c]
lea ecx, [esp + 0xd4]
push ecx
push edx
push str.__s
jmp 0x41269f
mov ecx, dword [esp + edi + 0x2c]
lea eax, [esp + 0xd4]
push eax
push ecx
push str._s
push ebx
call fcn.00498fa0
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x4125f3
mov edi, dword [esp + 0x28]
push 0x4be89c
push ebx
call fcn.00498fa0
mov eax, edi
mov ecx, 0xa
cdq
idiv ecx
add esp, 8
test edx, edx
jne 0x412718
mov eax, dword [esp + 0x18]
push edx
cdq
idiv dword [esp + 0x20]
mov esi, dword [esp + 0x24]
push eax
push 0x402
push 0x82
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
call fcn.0043ff80
mov eax, dword [0x4cb0dc]
add esp, 4
test eax, eax
jne 0x41279b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc edi
add ecx, 0x64
cmp edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ecx
jl 0x4125b7
push ebx
call fcn.00498ef0
mov ecx, dword [ebp + 4]
add esp, 4
lea edx, [esp + 0x1d4]
lea eax, [esp + 0x2d8]
push 0xa
push edx
push 0
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x41277a
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 0x90]
push 0x20d
push edx
push eax
call fcn.0043cfa0
add esp, 0xc
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
push ebx
call fcn.00498ef0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret