Function at 0x402820
Capabilities:
Get common file path

Disassembly:
sub esp, 0x26c
push ebx
push ebp
push esi
push edi
push 0x41d58c
call fcn.00402490
mov eax, dword [0x4210fc]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x288]
lea ecx, [esp + 0x5c]
push eax
call fcn.00411aa2
lea ecx, [esp + 0x4c]
call fcn.00401300
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004036b0
push 0x41d558
mov dword [esp + 0x64], eax
call fcn.00402490
add esp, 4
lea ecx, [esp + 0x74]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x74]
push 0x5c
push edx
call fcn.00405af0
add esp, 8
cmp eax, ebx
jne 0x4028fc
lea ecx, [esp + 0x4c]
call fcn.00401320
lea ecx, [esp + 0x5c]
call fcn.00411a78
lea ecx, [esp + 0x44]
call fcn.00411a78
lea ecx, [esp + 0x34]
call fcn.00411a78
lea ecx, [esp + 0x28]
call fcn.00411a78
lea ecx, [esp + 0x40]
call fcn.00411a78
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret 0x10
mov byte [eax], bl
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x44]
call fcn.00411b21
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x74]
push 0x104
push ecx
call ebp
lea edx, [esp + 0x74]
lea ecx, [esp + 0x44]
push edx
call fcn.00411b21
lea eax, [esp + 0x74]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x38]
call fcn.00411b21
lea edx, [esp + 0x74]
push 0x104
push edx
call ebp
mov edi, 0x41d300
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.BService
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x74]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.00411b21
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x179]
mov byte [esp + 0x178], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x178]
push 0x104
push ecx
stosb byte es:[edi], al
call ebp
lea edx, [esp + 0x28]
lea ecx, [esp + 0x30]
push edx
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x34]
call fcn.00411be5
push str.ace.dll
lea ecx, [esp + 0x34]
call fcn.00411be5
lea eax, [esp + 0x178]
lea ecx, [esp + 0x48]
push eax
call fcn.00411aa2
push 0x41d300
lea ecx, [esp + 0x4c]
call fcn.00411be5
push str.ace.dll
lea ecx, [esp + 0x4c]
call fcn.00411be5
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x40]
call fcn.00411be5
push str.AM.EXE
lea ecx, [esp + 0x40]
call fcn.00411be5
lea edx, [esp + 0x178]
lea ecx, [esp + 0x38]
push edx
call fcn.00411aa2
push str.BService
lea ecx, [esp + 0x3c]
call fcn.00411be5
push str.AM.EXE
lea ecx, [esp + 0x3c]
call fcn.00411be5
lea eax, [esp + 0x178]
lea ecx, [esp + 0x2c]
push eax
call fcn.00411aa2
push str.Ipmgm
lea ecx, [esp + 0x30]
call fcn.00411be5
push 0x41d4fc
call fcn.00402490
mov eax, dword [0x421be0]
add esp, 4
lea ecx, [esp + 0x28]
cmp eax, 4
push ecx
jbe 0x402ead
lea ecx, [esp + 0x28]
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x28]
call fcn.00411be5
push str.AM.EXE
lea ecx, [esp + 0x28]
call fcn.00411be5
push ebx
lea ecx, [esp + 0x28]
call fcn.00411c0c
sub esp, 0x10
mov esi, eax
mov dl, byte [esp + 0x27]
mov edi, esp
mov dword [esp + 0x20], esp
push ebx
mov ecx, edi
mov byte [edi], dl
call fcn.004021c0
mov eax, esi
shr eax, 0x10
test ax, ax
je 0x402b32
push esi
push edi
call fcn.00403300
add esp, 8
jmp 0x402b70
cmp esi, ebx
je 0x402b70
mov ecx, dword [0x4210fc]
and esi, 0xffff
mov dword [esp + 0x20], ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x402b67
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x41d4f8
call fcn.004015c0
lea ecx, [esp + 0x6c]
call section..text
sub esp, 0x10
mov al, byte [esp + 0x27]
mov esi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.004021c0
mov ecx, 0x41d4f8
shr ecx, 0x10
test cx, cx
je 0x402bc0
push 0x41d4f8
push esi
call fcn.00403300
add esp, 8
jmp 0x402c07
xor edx, edx
cmp edx, 0x41d4f8
je 0x402c07
mov eax, dword [0x4210fc]
xor ecx, ecx
mov edx, 0x41d4f8
mov dword [esp + 0x20], eax
mov cx, dx
push ecx
lea ecx, [esp + 0x24]
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x402bfe
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
lea ecx, [esp + 0x5c]
call fcn.00401260
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x24]
call fcn.00411be5
push str.BCSvc.EXE
lea ecx, [esp + 0x24]
call fcn.00411be5
push ebx
lea ecx, [esp + 0x24]
call fcn.00411c0c
sub esp, 0x10
mov esi, eax
mov dl, byte [esp + 0x27]
mov edi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, edi
mov byte [edi], dl
call fcn.004021c0
mov eax, esi
shr eax, 0x10
test ax, ax
je 0x402c73
push esi
push edi
call fcn.00403300
add esp, 8
jmp 0x402cb1
cmp esi, ebx
je 0x402cb1
mov ecx, dword [0x4210fc]
and esi, 0xffff
mov dword [esp + 0x20], ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x402ca8
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x41d4f0
call fcn.004015c0
lea ecx, [esp + 0x6c]
call section..text
sub esp, 0x10
mov al, byte [esp + 0x27]
mov esi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.004021c0
mov ecx, 0x41d4f0
shr ecx, 0x10
test cx, cx
je 0x402d01
push 0x41d4f0
push esi
call fcn.00403300
add esp, 8
jmp 0x402d48
xor edx, edx
cmp edx, 0x41d4f0
je 0x402d48
mov eax, dword [0x4210fc]
xor ecx, ecx
mov edx, 0x41d4f0
mov dword [esp + 0x20], eax
mov cx, dx
push ecx
lea ecx, [esp + 0x24]
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x402d3f
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
lea ecx, [esp + 0x5c]
call fcn.00401260
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x20]
call fcn.00411be5
push str.IPMgm2.exe
lea ecx, [esp + 0x20]
call fcn.00411be5
push ebx
lea ecx, [esp + 0x20]
call fcn.00411c0c
sub esp, 0x10
mov esi, eax
mov dl, byte [esp + 0x27]
mov edi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, edi
mov byte [edi], dl
call fcn.004021c0
mov eax, esi
shr eax, 0x10
test ax, ax
je 0x402db4
push esi
push edi
call fcn.00403300
add esp, 8
jmp 0x402df2
cmp esi, ebx
je 0x402df2
mov ecx, dword [0x4210fc]
and esi, 0xffff
mov dword [esp + 0x20], ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x402de9
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push str.IPMgm2
call fcn.004015c0
lea ecx, [esp + 0x6c]
call section..text
sub esp, 0x10
mov al, byte [esp + 0x27]
mov esi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.004021c0
mov ecx, str.IPMgm2
shr ecx, 0x10
test cx, cx
je 0x402e42
push str.IPMgm2
push esi
call fcn.00403300
add esp, 8
jmp 0x402e89
xor edx, edx
cmp edx, str.IPMgm2
je 0x402e89
mov eax, dword [0x4210fc]
xor ecx, ecx
mov edx, str.IPMgm2
mov dword [esp + 0x20], eax
mov cx, dx
push ecx
lea ecx, [esp + 0x24]
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x402e80
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
lea ecx, [esp + 0x5c]
call fcn.00401260
lea ecx, [esp + 0x1c]
call fcn.00411a78
lea ecx, [esp + 0x20]
call fcn.00411a78
lea ecx, [esp + 0x24]
jmp 0x403263
lea ecx, [esp + 0x20]
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x20]
call fcn.00411be5
push str.AM.EXE
lea ecx, [esp + 0x20]
call fcn.00411be5
push ebx
lea ecx, [esp + 0x20]
call fcn.00411c0c
sub esp, 0x10
mov esi, eax
mov dl, byte [esp + 0x27]
mov edi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, edi
mov byte [edi], dl
call fcn.004021c0
mov eax, esi
shr eax, 0x10
test ax, ax
je 0x402f0b
push esi
push edi
call fcn.00403300
add esp, 8
jmp 0x402f49
cmp esi, ebx
je 0x402f49
mov ecx, dword [0x4210fc]
and esi, 0xffff
mov dword [esp + 0x20], ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x402f40
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x41d4f8
call fcn.004015c0
lea ecx, [esp + 0x6c]
call section..text
push ebx
push 0x42152c
push ebx
lea ecx, [esp + 0x28]
call fcn.00411c0c
push eax
lea ecx, [esp + 0x58]
call fcn.004013e0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x24]
call fcn.00411be5
push str.BCSvc.EXE
lea ecx, [esp + 0x24]
call fcn.00411be5
push ebx
lea ecx, [esp + 0x24]
call fcn.00411c0c
sub esp, 0x10
mov esi, eax
mov cl, byte [esp + 0x27]
mov edi, esp
mov dword [esp + 0x28], esp
push ebx
mov byte [edi], cl
mov ecx, edi
call fcn.004021c0
mov edx, esi
shr edx, 0x10
test dx, dx
je 0x402fe2
push esi
push edi
call fcn.00403300
add esp, 8
jmp 0x40301f
cmp esi, ebx
je 0x40301f
mov eax, dword [0x4210fc]
and esi, 0xffff
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x403016
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x41d4f0
call fcn.004015c0
lea ecx, [esp + 0x6c]
call section..text
push ebx
push 0x42152c
push ebx
lea ecx, [esp + 0x2c]
call fcn.00411c0c
push eax
lea ecx, [esp + 0x58]
call fcn.004013e0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x24]
push edx
call fcn.0041180b
push 0x41d300
lea ecx, [esp + 0x28]
call fcn.00411be5
push str.IPMgm2.exe
lea ecx, [esp + 0x28]
call fcn.00411be5
push ebx
lea ecx, [esp + 0x28]
call fcn.00411c0c
sub esp, 0x10
mov esi, eax
mov al, byte [esp + 0x27]
mov ebp, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, ebp
mov byte [ebp], al
call fcn.004021c0
mov ecx, esi
shr ecx, 0x10
test cx, cx
je 0x4030bc
push esi
push ebp
call fcn.00403300
add esp, 8
jmp 0x403183
cmp esi, ebx
je 0x403183
mov edx, dword [0x4210fc]
and esi, 0xffff
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x40317a
mov edx, dword [esp + 0x20]
cmp edx, ebx
jne 0x403103
mov eax, dword [0x4173b4]
mov ecx, ebp
push eax
push ebx
call fcn.004017f0
jmp 0x40317a
mov eax, dword [ebp + 4]
mov ecx, 0x4173b0
cmp eax, ebx
je 0x403111
mov ecx, eax
cmp edx, ecx
jb 0x403165
cmp eax, ebx
mov ecx, 0x4173b0
je 0x403120
mov ecx, eax
mov esi, dword [ebp + 8]
add esi, ecx
cmp edx, esi
ja 0x403165
cmp eax, ebx
jne 0x403132
mov eax, 0x4173b0
mov ecx, dword [0x4173b4]
sub edx, eax
push ecx
push edx
lea edx, [esp + 0x7c]
mov ecx, ebp
push edx
call fcn.00401ab0
mov ecx, dword [0x4173b4]
push ecx
push ebx
push eax
mov ecx, ebp
call fcn.00401d10
push 1
lea ecx, [esp + 0x78]
call fcn.004021c0
jmp 0x40317a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebp
call fcn.00401f10
lea ecx, [esp + 0x20]
call fcn.00411a78
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push str.IPMgm2
call fcn.004015c0
lea ecx, [esp + 0x6c]
call section..text
sub esp, 0x10
mov eax, str.IPMgm2
mov dl, byte [esp + 0x27]
mov esi, esp
shr eax, 0x10
test ax, ax
mov dword [esp + 0x28], esp
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
je 0x4031fd
xor ecx, ecx
cmp ecx, str.IPMgm2
jne 0x4031df
mov edx, dword [0x4173b4]
mov ecx, esi
push edx
push ebx
call fcn.004017f0
jmp 0x403244
mov edi, str.IPMgm2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.IPMgm2
mov ecx, esi
call fcn.00401f10
jmp 0x403244
xor eax, eax
cmp eax, str.IPMgm2
je 0x403244
mov ecx, dword [0x4210fc]
xor edx, edx
mov eax, str.IPMgm2
mov dword [esp + 0x20], ecx
mov dx, ax
lea ecx, [esp + 0x20]
push edx
call fcn.00411c83
test eax, eax
setne al
cmp al, bl
je 0x40323b
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.00403300
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411a78
lea ecx, [esp + 0x5c]
call fcn.00401260
lea ecx, [esp + 0x24]
call fcn.00411a78
lea ecx, [esp + 0x20]
call fcn.00411a78
lea ecx, [esp + 0x1c]
call fcn.00411a78
push 0x41d4a4
call fcn.00402490
mov edx, dword [esp + 0x64]
push edx
call fcn.00403750
push 0x41d478
call fcn.00402490
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00411a78
lea ecx, [esp + 0x38]
call fcn.00411a78
lea ecx, [esp + 0x3c]
call fcn.00411a78
lea ecx, [esp + 0x48]
call fcn.00411a78
lea ecx, [esp + 0x30]
call fcn.00411a78
lea ecx, [esp + 0x4c]
call fcn.00401320
lea ecx, [esp + 0x5c]
call fcn.00411a78
lea ecx, [esp + 0x44]
call fcn.00411a78
lea ecx, [esp + 0x34]
call fcn.00411a78
lea ecx, [esp + 0x28]
call fcn.00411a78
lea ecx, [esp + 0x40]
call fcn.00411a78
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0x10