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

Disassembly:
sub esp, 0x80
mov eax, dword [0x55e074]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x38], edi
je 0x4987f0
mov dword [eax + 0x14], 0
mov esi, dword [esp + 0x94]
cmp esi, 0x10f48d
jg 0x498f3e
je 0x498f25
lea eax, [esi - 0x1b207]
cmp eax, 0x11
ja case.0x498818.111116
jmp dword [eax*4 + 0x498fb8]
push 0
push 0
mov ecx, edi
call fcn.004a2cd0
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.004f03c0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004abdd0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004ab790
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004ab3c0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004ab1b0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004abd60
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004a2500
test eax, eax
je 0x498fa6
lea ecx, [edi + 0x1d0]
test ecx, ecx
je 0x4988fb
lea ecx, [edi + 0x1d4]
jmp 0x4988fd
xor ecx, ecx
mov edx, dword [ecx]
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00510f50
push ecx
lea ecx, [esp + 0x34]
mov eax, esp
push 0x8000
push eax
call fcn.005111f0
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.0042efc0
add esp, 0xc
call fcn.0051a620
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00510740
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov eax, dword [0x547570]
mov ecx, 0x400
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x49897b
cmp dword [eax - 4], ecx
jge 0x4989c7
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x498984
mov ecx, ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4989c7
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 0x498a97
mov edx, dword [0x547570]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, str.SysWOW64_
mov dword [esp + 0x18], edx
test eax, eax
je 0x498a55
push eax
call ebp
mov esi, eax
test esi, esi
je 0x498a55
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x498a55
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x498b26
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498b26
mov edx, dword [esp + 0x18]
jmp 0x498b1a
mov eax, dword [0x547570]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.System32_
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x498ae5
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x498ae5
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x498ae5
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x498b26
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498b26
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ecx, edi
call fcn.004a2500
test eax, eax
je 0x498eb9
lea ecx, [edi + 0x1d0]
test ecx, ecx
je 0x498b47
lea ecx, [edi + 0x1d4]
jmp 0x498b49
xor ecx, ecx
mov edx, dword [ecx]
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.00510f50
mov eax, dword [0x547570]
mov ecx, str.regsvr32.exe
test ecx, ecx
mov dword [esp + 0x24], eax
jne 0x498b6c
xor eax, eax
jmp 0x498b73
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 0x498bd4
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x498ba2
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x498ba9
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x498bb9
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00405870
jmp 0x498bd4
lea ecx, [esp + 0x24]
call fcn.004124c0
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 [0x547570]
mov ecx, 0x554e48
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x498c1c
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x498c1c
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x498c1c
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x554e48
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 0x498c35
cmp eax, 0x1b212
jne 0x498cbe
mov eax, dword [0x547570]
mov ecx, 0x54daac
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x498c7d
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x498c7d
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x498c7d
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x54daac
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x498cbe
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498cbe
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x547570]
mov ecx, 0x54826c
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x498d06
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x498d06
push esi
lea ecx, [esp + 0x30]
call fcn.00405530
test eax, eax
je 0x498d06
mov edx, dword [esp + 0x2c]
inc esi
push esi
push 0x54826c
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x54daa8
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x498d4e
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x498d4e
push esi
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x498d4e
mov edx, dword [esp + 0x28]
inc esi
push esi
push 0x54daa8
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.005111f0
mov ecx, dword [0x547570]
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 [0x547570]
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x498e18
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498e18
mov edx, dword [esp + 0x40]
add edx, 0xfffffff4
push edx
call fcn.00532222
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], 0x548150
call fcn.00413470
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], eax
call fcn.00413470
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.00510740
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.004a3140
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
push 2
mov ecx, edi
call fcn.004a3140
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
push 0xd
mov ecx, edi
call fcn.004a3140
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004ab010
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov eax, esi
sub eax, 0x10f48e
je 0x498f9f
dec eax
je 0x498f86
sub eax, 2
je 0x498f5e
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.004aad70
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov ecx, edi
call fcn.004aad10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret 4