Function at 0x402709
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov ecx, dword [ebp + 0x10]
mov eax, 0x110
push ebx
push esi
cmp ecx, eax
push edi
ja 0x402b7b
je 0x402ad3
cmp ecx, 6
je 0x402aad
cmp ecx, 0x10
je 0x402aa6
cmp ecx, 0x4e
je 0x402a52
cmp ecx, 0x7b
jne 0x402db2
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x1970]
call dword [sym.imp.USER32.dll_ScreenToClient]
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x1012
push dword [ebx + 0x1970]
call edi
mov esi, eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0
push 0
push 0x1004
mov dword [ebp + 8], eax
push dword [ebx + 0x1970]
call edi
dec esi
mov dword [ebp + 0x10], eax
test esi, esi
jge 0x4027d2
push 3
pop esi
jmp 0x4027d4
xor esi, esi
push 0x3c
call fcn.0040532d
pop ecx
mov edi, 0x400
push eax
or esi, edi
push 0x29
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
call esi
mov eax, dword [ebp + 0x14]
dec eax
test eax, eax
jge 0x402803
mov dword [ebp + 0x18], 3
jmp 0x402807
and dword [ebp + 0x18], 0
push 0x29
call fcn.0040532d
pop ecx
push eax
mov eax, dword [ebp + 0x18]
or eax, edi
push 4
push eax
push dword [ebp + 8]
call esi
push 0
push 0
push 0xc00
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0x14]
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x40283d
mov dword [ebp + 0x18], 3
jmp 0x402841
and dword [ebp + 0x18], 0
push 0x28
call fcn.0040532d
pop ecx
push eax
mov eax, dword [ebp + 0x18]
or eax, edi
push 3
push eax
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0x14]
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x402869
mov dword [ebp + 0x18], 3
jmp 0x40286d
and dword [ebp + 0x18], 0
push 0x3b
call fcn.0040532d
pop ecx
push eax
mov eax, dword [ebp + 0x18]
or eax, edi
push 0x1f
push eax
push dword [ebp + 8]
call esi
push 0
push 0
push 0xc00
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4028a0
mov dword [ebp + 0x18], 3
jmp 0x4028a4
and dword [ebp + 0x18], 0
push 0x3f
call fcn.0040532d
pop ecx
push eax
mov eax, dword [ebp + 0x18]
or eax, edi
push 0x3f
push eax
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], 1
jge 0x4028c9
mov dword [ebp + 0x18], 3
jmp 0x4028cd
and dword [ebp + 0x18], 0
push 0x40
call fcn.0040532d
pop ecx
push eax
mov eax, dword [ebp + 0x18]
or eax, edi
push 0x40
push eax
push dword [ebp + 8]
call esi
push 0
push 0
push 0xc00
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x14], 0xffffffff
jne 0x402900
mov dword [ebp + 0x18], 3
jmp 0x402904
and dword [ebp + 0x18], 0
push 0x2a
call fcn.0040532d
pop ecx
push eax
mov eax, dword [ebp + 0x18]
or eax, edi
push 2
push eax
push dword [ebp + 8]
call esi
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x100
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, 2
mov dword [ebp + 8], eax
jne 0x402979
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
dec eax
cmp edi, eax
jge 0x40295e
lea ecx, [ebx + edi*4 + 0x168]
sub eax, edi
mov esi, dword [ecx + 4]
lea edx, [ecx + 4]
mov dword [ecx], esi
dec eax
mov ecx, edx
jne 0x402951
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
push 0x1008
push dword [ebx + 0x1970]
call esi
mov eax, dword [ebp + 8]
jmp 0x402982
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0x3f
je 0x40298c
cmp eax, 0x40
jne 0x402997
push eax
mov ecx, ebx
call fcn.004037bb
mov eax, dword [ebp + 8]
cmp eax, 3
je 0x4029ba
cmp eax, 4
je 0x4029af
cmp eax, 0x1f
je 0x4029af
cmp eax, 0x29
jne 0x402db2
cmp eax, 0x29
jne 0x4029bf
and dword [ebp + 8], 0
jmp 0x4029d0
lea eax, [edi + 1]
jmp 0x4029cd
cmp eax, 0x1f
jne 0x4029ca
mov eax, dword [ebp + 0x10]
dec eax
jmp 0x4029cd
lea eax, [edi - 1]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + edi*4 + 0x168]
lea eax, [ebx + edi*4 + 0x168]
and dword [ebp - 0x40], 0
mov edi, dword [ebx + ecx*4 + 0x168]
lea ecx, [ebx + ecx*4 + 0x168]
mov dword [eax], edi
lea eax, [ebp - 0x4c]
push eax
mov edi, 0x102b
push dword [ebp + 0x14]
mov dword [ecx], edx
mov dword [ebp - 0x3c], 3
push edi
push dword [ebx + 0x1970]
call esi
push 3
pop eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
push edi
push dword [ebx + 0x1970]
call esi
xor edi, edi
push edi
push edi
push dword [ebx + 0x1970]
call dword [sym.imp.USER32.dll_InvalidateRect]
push edi
push dword [ebp + 8]
push 0x1013
push dword [ebx + 0x1970]
call esi
jmp 0x402db2
cmp dword [ebp + 0x14], 0x40a
jne 0x402db2
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 8]
cmp eax, 0xffffff4f
jne 0x402a7a
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404434
jmp 0x402db2
cmp eax, 0xffffff9b
jne 0x402a8d
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404151
jmp 0x402db2
cmp eax, 0xffffff62
jne 0x402db2
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403f34
jmp 0x402db2
push 2
jmp 0x402cd4
cmp word [ebp + 0x14], 0
je 0x402ac7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x217c]
mov dword [0x415530], eax
jmp 0x402db2
and dword [0x415530], 0
jmp 0x402db2
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push 0xc
call esi
push eax
push 0xb
call esi
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x6b
push dword [0x4133ac]
call edi
push ebx
push 0x32
mov dword [ebp + 0x14], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x6b
push dword [0x4133ac]
call edi
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
mov ebx, 0x80
push ebx
push edi
call esi
push dword [ebp + 0x14]
push 1
push ebx
push edi
call esi
mov ebx, dword [ebp + 8]
push edi
mov ecx, ebx
mov dword [ebx + 0x217c], edi
call fcn.0040350b
push edi
mov ecx, ebx
call fcn.004031e8
push edi
mov ecx, ebx
call fcn.00404a04
mov ecx, ebx
call fcn.00404ca7
push 0x4400
push 0
push 0x1036
push 0x40a
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
jmp 0x402ba3
sub ecx, 0x111
je 0x402bea
dec ecx
dec ecx
je 0x402bab
sub ecx, 0x120
jne 0x402db2
mov ecx, dword [ebp + 8]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.004041b0
push 1
pop eax
jmp 0x402db4
mov esi, dword [sym.imp.USER32.dll_KillTimer]
mov eax, 0x3e8
cmp dword [ebp + 0x14], eax
jne 0x402bc9
push eax
push dword [ebp + 0xc]
call esi
mov ecx, dword [ebp + 8]
call fcn.004039c9
mov eax, 0x3e9
cmp dword [ebp + 0x14], eax
jne 0x402db2
push eax
push dword [ebp + 0xc]
call esi
mov ecx, dword [ebp + 8]
call fcn.0040485f
jmp 0x402db2
movzx ecx, word [ebp + 0x14]
mov eax, 0x409
cmp ecx, eax
jg 0x402d44
je 0x402ce7
dec ecx
je 0x402cd2
sub ecx, 0x3f4
je 0x402ca6
dec ecx
je 0x402c34
sub ecx, 0xe
je 0x402ce7
dec ecx
jne 0x402db2
mov ecx, dword [ebp + 8]
call fcn.004039c9
jmp 0x402db2
xor ebx, ebx
xor eax, eax
cmp dword [0x40ad74], ebx
mov esi, 0x408310
sete al
push eax
push esi
mov dword [0x40ad74], eax
call fcn.004054a6
mov eax, dword [0x40ad88]
pop ecx
pop ecx
mov dword [ebp - 0x258], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x254]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 5
push ebx
lea eax, [ebp - 0x258]
push esi
push eax
push 0x408304
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x402db2
xor esi, esi
push 5
cmp dword [0x415538], esi
push esi
push esi
jne 0x402cce
push 0x17
call fcn.00405321
pop ecx
push eax
push 0x408304
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x402db2
push 0x18
jmp 0x402cb6
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x217c]
call dword [sym.imp.USER32.dll_EndDialog]
push 1
jmp 0x402c9b
cmp dword [0x40ad60], 0
jne 0x402cfd
mov ecx, dword [ebp + 8]
call fcn.004034bf
jmp 0x402db2
mov esi, dword [ebp + 8]
cmp dword [esi + 0x150], 0
je 0x402d29
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
je 0x402d1b
mov ecx, esi
call fcn.00404cca
push 0xffffffffffffffff
mov ecx, esi
call fcn.00405067
jmp 0x402db2
push 0x30
push 0x40ad84
push 0x2c
call fcn.0040532d
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x402db2
sub ecx, 0x7e6
je 0x402da7
sub ecx, 5
je 0x402d78
sub ecx, 4
je 0x402d6e
sub ecx, 0x7827
jne 0x402db2
mov ecx, dword [ebp + 8]
push dword [ecx + 0x217c]
call fcn.00402dfa
jmp 0x402db2
mov ecx, dword [ebp + 8]
call fcn.0040478b
jmp 0x402db2
mov ecx, dword [ebp + 8]
call fcn.00404aee
test eax, eax
jne 0x402d9d
push 0x30
push 0x40ad84
push 0x2b
call fcn.0040532d
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
call fcn.00404c57
jmp 0x402db2
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040365e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14