Function at 0x41f030
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x115c]
mov eax, 0x115c
call fcn.004bd0c0
push 0xffffffffffffffff
push 0x4d90c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x521a70]
xor eax, ebp
mov dword [ebp + 0x1158], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1164]
xor ebx, ebx
push 0xa
mov esi, 0xf
push str.regasm.exe
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
call fcn.00402230
push 0xffffffffffffffff
push ebx
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x4c], ebx
mov byte [ebp + 0x3c], bl
call fcn.00402150
push 0x103
lea edx, [ebp + 0x1055]
push ebx
push edx
mov byte [ebp - 4], 1
mov byte [ebp + 0x1054], bl
call fcn.004ba350
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1054]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp + 0x1054]
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41f0f5
sub eax, esi
push eax
lea ecx, [ebp + 0x1054]
push ecx
lea ecx, [ebp + 0x1c]
call fcn.00402230
push 0x24
push str.Microsoft.NETFramework_v2.0.50727_
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00402300
push str.MSCOREE.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x18], esi
je 0x41f1e4
push str.GetCORSystemDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x41f1d5
push 0xffe
lea edx, [ebp + 0x56]
push ebx
push edx
mov dword [ebp - 0x1c], ebx
mov word [ebp + 0x54], bx
call fcn.004ba350
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea ecx, [ebp + 0x54]
push ecx
call esi
test eax, eax
jl 0x41f1d5
call dword [0x521964]
lea edx, [ebp + 0x54]
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x41f19e
xor eax, eax
jmp 0x41f1b9
lea esi, [eax + eax]
mov eax, esi
call fcn.004b9fd0
mov ecx, dword [ebp - 0x14]
mov eax, esp
push ecx
push esi
lea edx, [ebp + 0x54]
push edx
push eax
call fcn.004014b0
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x41f1c0
sub ecx, esi
push ecx
push eax
lea ecx, [ebp + 0x1c]
call fcn.00402230
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x18]
jmp 0x41f1f1
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x41f1f1
mov dword [eax], 1
lea ecx, [ebp + 0x38]
push ecx
lea edx, [ebp + 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.0041ee60
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.00402150
cmp dword [ebp - 0x20], 0x10
mov byte [ebp - 4], 2
jb 0x41f22b
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004b9684
add esp, 4
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x41f237
lea eax, [ebp + 0x3c]
push eax
call fcn.0041ef10
add esp, 4
test eax, eax
je 0x41f29f
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x41f24d
mov dword [eax], ebx
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0x38]
mov esi, 0xf
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push edx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00402150
cmp dword [ebp + 0x34], 0x10
jb 0x41f27b
mov eax, dword [ebp + 0x20]
push eax
call fcn.004b9684
add esp, 4
cmp dword [ebp + 0x50], 0x10
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], bl
jb 0x41f296
mov ecx, dword [ebp + 0x3c]
push ecx
call fcn.004b9684
add esp, 4
cmp dword [ebp + 0x18], 0x10
mov dword [ebp + 0x50], esi
jmp 0x41f308
cmp esi, ebx
je 0x41f2b0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x41f2b0
mov dword [eax], 2
push ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x4e9a2d
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00402230
mov esi, 0x10
cmp dword [ebp + 0x34], esi
jb 0x41f2e0
mov eax, dword [ebp + 0x20]
push eax
call fcn.004b9684
add esp, 4
cmp dword [ebp + 0x50], esi
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], bl
jb 0x41f2fe
mov ecx, dword [ebp + 0x3c]
push ecx
call fcn.004b9684
add esp, 4
cmp dword [ebp + 0x18], esi
mov dword [ebp + 0x50], 0xf
mov byte [ebp + 0x3c], bl
mov dword [ebp + 0x4c], ebx
jb 0x41f31c
mov edx, dword [ebp + 4]
push edx
call fcn.004b9684
add esp, 4
mov eax, edi
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x1158]
xor ecx, ebp
call fcn.004b9963
add ebp, 0x115c
mov esp, ebp
pop ebp
ret