Function at 0x413209
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x482590]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x413229
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x413244
mov eax, dword [0x4823a8]
cmp eax, ebx
je 0x41323c
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x413244
mov eax, dword [0x4825f8]
mov dword [ebp - 4], eax
cmp byte [0x48375c], bl
mov dword [ebp - 8], ebx
jne 0x413269
push ebx
push 0x40581a
push dword [ebp - 4]
push 0x12
push dword [0x4825fc]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x20]
call fcn.0041ef2d
push str.___Internal_WaitExternal___
call fcn.0042075a
cmp eax, ebx
je 0x41328a
push eax
lea ecx, [ebp - 0x20]
call fcn.0041f0d0
jmp 0x413297
push 0x483524
lea ecx, [ebp - 0x20]
call fcn.0041f13e
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4132ab
cmp byte [eax], bl
je 0x4132ab
push eax
lea ecx, [ebp - 0x20]
call fcn.0041f0d0
push 1
lea ecx, [ebp - 0x20]
pop esi
push esi
push ebx
push ebx
push 0x42fc38
push str.__n_
call fcn.0041fdb9
cmp byte [0x48375c], bl
jne 0x413303
lea ecx, [ebp - 0x20]
call fcn.0041fee9
push eax
push 0x422
push dword [ebp - 8]
call fcn.00421d90
add esp, 0xc
mov ecx, 0x482d40
call fcn.0041fee9
push eax
push dword [ebp - 8]
call fcn.00421d0f
pop ecx
pop ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], str.open
mov dword [ebp - 0x4c], esi
call fcn.0041ef2d
lea ecx, [ebp - 0x2c]
call fcn.0041ef2d
mov edi, dword [ebp + 8]
cmp byte [edi], 0x22
jne 0x4133ab
lea esi, [edi + 1]
push 0x22
push esi
call fcn.00428690
pop ecx
test eax, eax
pop ecx
je 0x4133ab
push esi
lea ecx, [ebp - 0x14]
call fcn.0041f0d0
push ebx
push 0x22
lea ecx, [ebp - 0x14]
call fcn.0041f86b
mov ecx, dword [ebp - 0x14]
sub ecx, eax
push ecx
push ebx
push 0x22
lea ecx, [ebp - 0x14]
call fcn.0041f86b
push eax
lea ecx, [ebp - 0x14]
call fcn.0041f567
mov edi, 0x42ffd8
push edi
push esi
call fcn.00429200
pop ecx
test eax, eax
pop ecx
je 0x4133fa
push edi
push esi
call fcn.00429200
pop ecx
inc eax
pop ecx
inc eax
jmp 0x4133f1
push 0x20
pop esi
push esi
push edi
call fcn.00428690
pop ecx
pop ecx
test eax, eax
push edi
lea ecx, [ebp - 0x14]
je 0x4133f5
call fcn.0041f0d0
push ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.0041f86b
mov ecx, dword [ebp - 0x14]
sub ecx, eax
push ecx
push ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.0041f86b
push eax
lea ecx, [ebp - 0x14]
call fcn.0041f567
push esi
push edi
call fcn.00428690
pop ecx
inc eax
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041f0d0
lea ecx, [ebp - 0x14]
call fcn.0041fee9
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x58], eax
pop edi
jbe 0x413416
lea ecx, [ebp - 0x2c]
call fcn.0041fee9
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x413497
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 0x10], eax
push 0xff
push 0xffffffffffffffff
lea eax, [ebp + 0x10]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x41348e
cmp eax, 1
jne 0x41348e
push ebx
push ebx
push ebx
lea eax, [ebp - 0x84]
push ebx
push eax
call esi
test eax, eax
je 0x413430
push ebx
push ebx
lea eax, [ebp - 0x84]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x413430
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x41344d
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x48375c], bl
pop esi
pop ebx
jne 0x4134b5
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x2c]
call fcn.0041f063
lea ecx, [ebp - 0x14]
call fcn.0041f063
lea ecx, [ebp - 0x20]
call fcn.0041f063
leave
ret 0xc