Function at 0x497580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bd50
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, ecx
lea ecx, [ebp - 0x9c]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], ebx
call fcn.00404eb0
mov dword [ebp - 4], ebx
cmp dword [edi + 0x20], ebx
jne 0x49760c
lea edx, [ebp - 0x80]
push edx
mov ecx, esi
call fcn.00416ed0
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x104], 1
call fcn.00404ed0
mov dword [ebp - 4], 2
mov ebx, 3
jmp 0x49763a
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x10]
xor edx, edx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.00403410
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 3
mov ebx, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
xor esi, esi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
call fcn.00404660
mov dword [ebp - 4], 4
test bl, 4
je 0x49768c
and ebx, 0xfffffffb
cmp dword [ebp - 0x34], 8
jb 0x49767c
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
test bl, 2
je 0x4976b6
and ebx, 0xfffffffd
cmp dword [ebp - 0x50], 8
jb 0x4976a6
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b8946
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 7
test bl, 1
je 0x4976e1
cmp dword [ebp - 0x6c], 8
jb 0x4976d1
mov eax, dword [ebp - 0x80]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], cx
push 0x38
lea edx, [ebp - 0x140]
push esi
push edx
call fcn.004b9850
add esp, 0xc
cmp byte [edi + 0xc], 0
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x138], str.runas
jne 0x497717
mov dword [ebp - 0x138], str.open
mov ecx, 8
cmp dword [ebp - 0x88], ecx
jb 0x497732
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x134], eax
jmp 0x49773e
lea edx, [ebp - 0x9c]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x14], ecx
jb 0x49774b
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x18], ecx
jb 0x497761
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x12c], ecx
jmp 0x49776a
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x12c], edx
cmp byte [edi + 0xd], 0
mov eax, 1
je 0x497777
xor eax, eax
cmp byte [edi + 0xe], 0
je 0x497782
mov eax, 7
mov ecx, dword [edi + 0x2c]
cmp ecx, esi
je 0x49778b
mov eax, ecx
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x140], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4977e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4977e1
push 1
push str.mailru::process::launch
push str.process_util.cpp
push 0x30
push eax
lea ecx, [ebp - 0x100]
call fcn.00403e00
push 0x5a15c8
lea ecx, [ebp - 0x100]
push ecx
call fcn.004b9346
mov ebx, dword [ebp - 0x10c]
mov ecx, edi
call fcn.004574c0
mov dword [edi], ebx
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x497806
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x88], ebx
jb 0x49782d
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b8946
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret 8