Function at 0x404f10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4155ac
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x421024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x378], ecx
push str.Loading_Name_Map
push str.StartupAgency
mov dword [ebp - 4], 0
call fcn.00401b30
add esp, 8
push ecx
lea ecx, [ebp - 0x36c]
call fcn.0040b960
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 1
call fcn.0040c440
push 6
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x36c]
call fcn.0040c020
push 0x4183c4
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2cc]
call fcn.00403e30
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x288]
cmp eax, 0x10
jb 0x404fc4
inc eax
push eax
push dword [ebp - 0x29c]
call fcn.00403580
push 0x28
mov dword [ebp - 0x288], 0xf
mov dword [ebp - 0x28c], 0
mov byte [ebp - 0x29c], 0
call fcn.00414143
mov esi, eax
add esp, 4
mov dword [ebp - 0x224], esi
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
lea edx, [ebp - 0x2cc]
push str.lic.dat
call fcn.00405e30
add esp, 4
mov ecx, esi
call fcn.004117d0
mov edi, eax
mov byte [ebp - 4], 4
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
mov ebx, eax
call fcn.004114a0
mov esi, eax
push esi
push str.POST_GU_TYPE_:__d
push str.StartupAgency
call fcn.00401b30
add esp, 0xc
test esi, esi
jne 0x405074
cmp dword [ebx + 8], esi
jne 0x405056
lea ecx, [esi + 2]
call fcn.00411630
push 2
push str.POST_SET_GU_TYPE_:__d
jmp 0x40508e
mov ecx, 1
call fcn.00411630
push 1
push str.POST_SET_GU_TYPE_:__d
push str.StartupAgency
call fcn.00401b30
add esp, 0xc
cmp esi, 1
jne 0x40509b
cmp dword [ebx + 8], 0
jne 0x40509b
lea ecx, [esi + 1]
call fcn.00411630
push 2
push str.STARTUP_SET_GU_TYPE_:__d
push str.StartupAgency
call fcn.00401b30
add esp, 0xc
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x14]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2b8]
cmp eax, 0x10
jb 0x4050c0
inc eax
push eax
push dword [ebp - 0x2cc]
call fcn.00403580
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp eax, 1
jne 0x4050ee
cmp dword [ebp - 0x224], 0
jne 0x4050ee
jmp 0x4050f0
xor eax, eax
test al, al
lea ecx, [ebp - 0x36c]
push 2
lea eax, [ebp - 0x284]
sete bl
push eax
call fcn.0040c020
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2e4]
cmp dword [ebp - 0x270], 0x10
lea eax, [ebp - 0x284]
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
cmovae eax, dword [ebp - 0x284]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x40517a
cmp dword [ebp - 0x270], 0x10
lea eax, [ebp - 0x284]
cmovae eax, dword [ebp - 0x284]
push eax
push str.Cant_find__s
push str.StartupAgency
call fcn.00401aa0
add esp, 0xc
mov dword [ebp - 0x370], 0
lea eax, [ebp - 0x370]
push 0x41fa04
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
mov byte [ebp - 4], 7
test bl, bl
je 0x405283
push 0
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x36c]
call fcn.0040c020
mov esi, eax
lea eax, [ebp - 0x23c]
cmp eax, esi
je 0x405200
mov eax, dword [ebp - 0x228]
cmp eax, 0x10
jb 0x4051d9
inc eax
push eax
push dword [ebp - 0x23c]
call fcn.00403580
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.004034b0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2b8]
cmp eax, 0x10
jb 0x40521c
inc eax
push eax
push dword [ebp - 0x2cc]
call fcn.00403580
cmp dword [ebp - 0x228], 0x10
lea ecx, [ebp - 0x2e4]
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x405283
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
push str.Cant_find__s
push str.StartupAgency
call fcn.00401aa0
add esp, 0xc
mov dword [ebp - 0x374], 0
lea eax, [ebp - 0x374]
push 0x41fa04
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
xor eax, eax
mov dword [ebp - 0x258], 7
push eax
push 0x418a90
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
call fcn.00402e80
xor eax, eax
mov byte [ebp - 4], 9
push eax
push 0x418a90
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.00402e80
lea edx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2b4]
call fcn.004079c0
push 0xe
push str.rundll32.exe__
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xb
call fcn.004058d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x254]
call fcn.004059b0
push 0xc
push str.__ProcessDll
lea ecx, [ebp - 0x254]
call fcn.004058d0
push 1
push 0x418ad0
lea ecx, [ebp - 0x254]
call fcn.004058d0
mov esi, dword [ebp - 0x378]
cmp word [esi], 0
jne 0x405358
xor ecx, ecx
jmp 0x40536f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405360
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x254]
call fcn.004058d0
test bl, bl
je 0x405476
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x418ad4
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea edx, [ebp - 0x23c]
lea ecx, [ebp - 0x29c]
call fcn.004079c0
push 9
push ecx
push str.sysnative
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0xc
call fcn.00405620
cmp eax, 0xffffffff
je 0x4053f2
push 8
push str.system32
push 9
push eax
lea ecx, [ebp - 0x29c]
call fcn.00405700
cmp word [ebp - 0x220], 0
jne 0x405400
xor ecx, ecx
jmp 0x40541f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405410
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004058d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004059b0
push 0x10
push str.__ProcessDllStub
lea ecx, [ebp - 0x26c]
call fcn.004058d0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x288]
cmp eax, 8
jb 0x405476
inc eax
push eax
push dword [ebp - 0x29c]
call fcn.00403520
cmp dword [ebp - 0x258], 8
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x254]
cmovae edx, dword [ebp - 0x26c]
cmp dword [ebp - 0x240], 8
cmovae ecx, dword [ebp - 0x254]
call fcn.004044b0
test eax, eax
jne 0x4054b8
push str.Failed_to_launch_the_processes
push str.StartupAgency
call fcn.00401aa0
jmp 0x4054c7
push str.Successfully_launch_the_processes
push str.StartupAgency
call fcn.00401b30
mov eax, dword [ebp - 0x2a0]
add esp, 8
cmp eax, 8
jb 0x4054e2
inc eax
push eax
push dword [ebp - 0x2b4]
call fcn.00403520
xor eax, eax
mov dword [ebp - 0x2a0], 7
mov word [ebp - 0x2b4], ax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2a4], 0
cmp eax, 8
jb 0x405517
inc eax
push eax
push dword [ebp - 0x254]
call fcn.00403520
xor eax, eax
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x244], 0
cmp eax, 8
jb 0x40554c
inc eax
push eax
push dword [ebp - 0x26c]
call fcn.00403520
xor eax, eax
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x25c], 0
cmp eax, 0x10
jb 0x405581
inc eax
push eax
push dword [ebp - 0x23c]
call fcn.00403580
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
cmp eax, 0x10
jb 0x4055b4
inc eax
push eax
push dword [ebp - 0x284]
call fcn.00403580
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x270], 0xf
mov dword [ebp - 0x274], 0
mov byte [ebp - 0x284], 0
call fcn.0040bd60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414132
mov esp, ebp
pop ebp
ret