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

Disassembly:
sub esp, 0x330
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push esi
mov esi, dword [esp + 0x33c]
push 0x40
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x2c], 0x44
call fcn.0040a790
mov eax, dword [esp + 0x34c]
add esp, 0xc
sub eax, 1
je 0x403b29
sub eax, 0x110
jne case.0x40397d.15
movzx eax, word [esp + 0x344]
add eax, 0xfffffff4
cmp eax, 0x59
ja case.0x40397d.15
movzx ecx, byte [eax + 0x403c20]
jmp dword [ecx*4 + 0x403c0c]
xor edx, edx
cmp dword [0x420374], ebx
sete dl
xor eax, eax
mov dword [0x420374], edx
jmp 0x403bf1
call fcn.00402340
xor eax, eax
jmp 0x403bf1
push ebx
cmp dword [0x420374], ebx
je 0x403b00
mov eax, dword [0x426a6c]
mov ecx, dword [0x426498]
push eax
push ecx
call fcn.00409d82
mov edx, dword [0x426498]
push edx
push 4
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0xec]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x34]
push edx
push 4
lea eax, [esp + 0x3c]
push 1
push eax
mov byte [esp + ecx + 0x104], bl
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0xa8]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x54]
add esp, 0x4c
push edx
push 4
lea eax, [esp + 0x14]
push 1
push eax
mov byte [esp + ecx + 0x74], bl
call fcn.0040a459
add esp, 0x10
lea ecx, [esp + 0x12c]
push ecx
push ebx
push 0x4194d0
push 0x426a78
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x426498]
lea edx, [esp + 0x12c]
push edx
push eax
call section..text
add esp, 8
test eax, eax
jne 0x403afe
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x238]
push str._s__s
push eax
call fcn.0040a6c6
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403aee
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x12c]
push ecx
call fcn.0040afb4
add esp, 4
push 1
call fcn.004023d0
add esp, 4
xor eax, eax
jmp 0x403bf1
call fcn.00402520
test eax, eax
je case.0x40397d.15
mov dword [0x426760], 1
xor eax, eax
jmp 0x403bf1
mov edx, dword [0x426a6c]
mov eax, dword [0x426498]
push ebx
push edx
push eax
call fcn.00409d82
mov ecx, dword [0x426498]
push ecx
push 4
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.0040a459
mov eax, dword [0x426498]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0xec]
push 1
push edx
call fcn.0040a459
mov ecx, dword [0x426498]
mov eax, dword [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x3c]
push 1
push edx
mov byte [esp + eax + 0x104], bl
call fcn.0040a459
mov eax, dword [0x426498]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0xa8]
push 1
push edx
call fcn.0040a459
mov ecx, dword [0x426498]
mov eax, dword [esp + 0x54]
add esp, 0x4c
push ecx
push 4
lea edx, [esp + 0x14]
push 1
push edx
mov byte [esp + eax + 0x74], bl
call fcn.0040a459
add esp, 0x10
cmp dword [esp + 0xc], ebx
je 0x403bdc
mov dword [0x420374], 1
push 1
jmp 0x403be3
mov dword [0x420374], ebx
push ebx
push 0x65
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, 1
mov ecx, dword [esp + 0x334]
pop esi
pop ebx
xor ecx, esp
call fcn.0040a476
add esp, 0x330
ret 0x10