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

Disassembly:
sub esp, 0x80
mov eax, dword [0x55cfbc]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x38], edi
je 0x4978a0
mov dword [eax + 0x14], 0
mov esi, dword [esp + 0x94]
cmp esi, 0x10f48d
jg 0x497fee
je 0x497fd5
lea eax, [esi - 0x1b207]
cmp eax, 0x11
ja case.0x4978c8.111116
jmp dword [eax*4 + 0x498068]
push 0
push 0
mov ecx, edi
call fcn.004a1d80
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, dword [edi + 0xe4]
push 0xffffffffffffffff
push 0
call fcn.004ef800
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004aae70
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004aa830
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004aa460
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004aa250
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004aae00
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004a15b0
test eax, eax
je 0x498056
lea ecx, [edi + 0x1d0]
test ecx, ecx
je 0x4979ab
lea ecx, [edi + 0x1d4]
jmp 0x4979ad
xor ecx, ecx
mov edx, dword [ecx]
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00510650
push ecx
lea ecx, [esp + 0x34]
mov eax, esp
push 0x8000
push eax
call fcn.005108f0
call fcn.00403590
fstp qword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, esp
push edx
push eax
push ecx
call fcn.0042ef20
add esp, 0xc
call fcn.00519970
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0050fe40
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov eax, dword [0x546560]
mov ecx, 0x400
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x497a2b
cmp dword [eax - 4], ecx
jge 0x497a77
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x497a34
mov ecx, ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x497a77
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebx
call fcn.00405590
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x94]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
call ebx
mov edx, dword [esp + 0x10]
cmp esi, 0x1b210
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
jle 0x497b47
mov edx, dword [0x546560]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, str.SysWOW64_
mov dword [esp + 0x18], edx
test eax, eax
je 0x497b05
push eax
call ebp
mov esi, eax
test esi, esi
je 0x497b05
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x497b05
mov ecx, dword [esp + 0x18]
inc esi
push esi
push str.SysWOW64_
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00405a90
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x497bd6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x497bd6
mov edx, dword [esp + 0x18]
jmp 0x497bca
mov eax, dword [0x546560]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.System32_
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x497b95
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x497b95
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x497b95
mov edx, dword [esp + 0x1c]
inc esi
push esi
push str.System32_
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x497bd6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x497bd6
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ecx, edi
call fcn.004a15b0
test eax, eax
je 0x497f69
lea ecx, [edi + 0x1d0]
test ecx, ecx
je 0x497bf7
lea ecx, [edi + 0x1d4]
jmp 0x497bf9
xor ecx, ecx
mov edx, dword [ecx]
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.00510650
mov eax, dword [0x546560]
mov ecx, str.regsvr32.exe
test ecx, ecx
mov dword [esp + 0x24], eax
jne 0x497c1c
xor eax, eax
jmp 0x497c23
push str.regsvr32.exe
call ebx
push str.regsvr32.exe
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x497c84
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x497c52
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x497c59
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x497c69
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00405870
jmp 0x497c84
lea ecx, [esp + 0x24]
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x546560]
mov ecx, 0x553dd8
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x497ccc
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x497ccc
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x497ccc
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x553dd8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x94]
cmp eax, 0x1b210
je 0x497ce5
cmp eax, 0x1b212
jne 0x497d6e
mov eax, dword [0x546560]
mov ecx, 0x54ca3c
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x497d2d
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x497d2d
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x497d2d
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x54ca3c
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x497d6e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x497d6e
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
mov ecx, 0x54725c
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x497db6
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x497db6
push esi
lea ecx, [esp + 0x30]
call fcn.00405530
test eax, eax
je 0x497db6
mov edx, dword [esp + 0x2c]
inc esi
push esi
push 0x54725c
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x54ca38
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x497dfe
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x497dfe
push esi
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x497dfe
mov edx, dword [esp + 0x28]
inc esi
push esi
push 0x54ca38
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.00405bb0
lea eax, [esp + 0x48]
push 0x8000
push eax
lea ecx, [esp + 0x54]
call fcn.005108f0
mov ecx, dword [0x546560]
mov eax, dword [eax]
mov dword [esp + 0x30], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x3c]
push eax
call fcn.004059f0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x48]
call fcn.00405440
lea ecx, [esp + 0x30]
call fcn.00405700
mov edx, dword [0x546560]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x48]
call fcn.004059f0
lea edx, [esp + 0x38]
lea ecx, [esp + 0x40]
push edx
call fcn.00405440
lea ecx, [esp + 0x38]
call fcn.00405700
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 0x40]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x497ec8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x497ec8
mov edx, dword [esp + 0x40]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00405700
lea ecx, [esp + 0x48]
call fcn.00405700
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x58]
xor esi, esi
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0x3c
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0x547140
call fcn.00413620
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], eax
call fcn.00413620
mov dword [esp + 0x68], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 5
mov dword [esp + 0x78], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x4c]
call fcn.0050fe40
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
push 1
mov ecx, edi
call fcn.004a21f0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
push 2
mov ecx, edi
call fcn.004a21f0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
push 0xd
mov ecx, edi
call fcn.004a21f0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004aa0b0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov eax, esi
sub eax, 0x10f48e
je 0x49804f
dec eax
je 0x498036
sub eax, 2
je 0x49800e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, dword [edi + 4]
push 0
push 0xa76c
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004a9e10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004a9db0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret 4