Function at 0x511eb0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x928]
sub esp, 0x928
push 0xfffffffffffffffe
push 0x673318
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x924], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x934]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x512301
mov byte [esi], bl
mov dword [ebp - 0x1c], 1
cmp dword [0x74ca58], ebx
jne 0x511f53
push 0x64d88c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x74ca58], eax
cmp eax, ebx
jne 0x511f42
push 0x64d88c
call fcn.004f4be0
mov dword [0x74ca58], eax
cmp eax, ebx
je 0x511f53
push 0x64d878
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x74ca54], eax
cmp dword [0x74ca54], ebx
je 0x512301
mov dword [ebp - 0x1c], 2
cmp byte [0x74c950], bl
jne 0x511fce
push 0x104
push 0x74c950
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x74c950
call fcn.004e24e0
add esp, 4
mov eax, 0x74c950
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x511f91
mov ecx, dword [0x64d860]
mov dword [eax], ecx
mov edx, dword [0x64d864]
mov dword [eax + 4], edx
mov ecx, dword [0x64d868]
mov dword [eax + 8], ecx
mov edx, dword [0x64d86c]
mov dword [eax + 0xc], edx
mov ecx, dword [0x64d870]
mov dword [eax + 0x10], ecx
mov dl, byte [0x64d874]
mov byte [eax + 0x14], dl
push ebx
call fcn.00503120
test eax, eax
je 0x5121e3
mov dword [ebp - 0x1c], 4
mov eax, dword [ebp + 0x930]
cmp eax, 0x1a
jne 0x51207e
mov byte [ebp + 0x820], bl
push 0x103
push ebx
lea eax, [ebp + 0x821]
push eax
call fcn.005dfd60
add esp, 0xc
mov dword [ebp - 0x1c], 5
call fcn.004d9b00
push 0x74c950
test eax, eax
je 0x512030
push 0x629884
lea ecx, [ebp + 0x820]
push ecx
jmp 0x51203c
push 0x629870
lea edx, [ebp + 0x820]
push edx
call fcn.005dfb23
add esp, 0xc
lea eax, [ebp + 0x820]
push eax
call fcn.004ec720
add esp, 4
test eax, eax
je 0x512301
lea ecx, [ebp + 0x820]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x512063
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x51230a
cmp eax, 6
jne 0x5120f2
mov byte [ebp + 0x514], bl
push 0x103
push ebx
lea ecx, [ebp + 0x515]
push ecx
call fcn.005dfd60
mov dword [ebp - 0x1c], 6
push 0x74c950
push 0x629860
lea edx, [ebp + 0x514]
push edx
call fcn.005dfb23
lea eax, [ebp + 0x514]
push eax
call fcn.004ec720
add esp, 0x1c
test eax, eax
je 0x512301
lea ecx, [ebp + 0x514]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x5120d7
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x51230a
cmp eax, 0x10
jne 0x51216b
mov byte [ebp + 0x410], bl
push 0x103
push ebx
lea ecx, [ebp + 0x411]
push ecx
call fcn.005dfd60
mov dword [ebp - 0x1c], 7
push 0x74c950
push 0x629854
lea edx, [ebp + 0x410]
push edx
call fcn.005dfb23
lea eax, [ebp + 0x410]
push eax
call fcn.004ec720
add esp, 0x1c
test eax, eax
je 0x512301
lea ecx, [ebp + 0x410]
mov edx, esi
jmp 0x512150
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x512150
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x51230a
cmp eax, 2
jne 0x512301
mov byte [ebp + 0x71c], bl
push 0x103
push ebx
lea ecx, [ebp + 0x71d]
push ecx
call fcn.005dfd60
mov dword [ebp - 0x1c], 8
push 0x74c950
push 0x62983c
lea edx, [ebp + 0x71c]
push edx
call fcn.005dfb23
lea eax, [ebp + 0x71c]
push eax
call fcn.004ec720
add esp, 0x1c
test eax, eax
je 0x512301
lea ecx, [ebp + 0x71c]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x5121c8
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x51230a
mov dword [ebp - 0x1c], 9
push esi
push 0x4000
push ebx
mov ecx, dword [ebp + 0x930]
push ecx
push ebx
call dword [0x74ca54]
test eax, eax
jne 0x512301
push ebx
push 0x631e70
push esi
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x5122d0
mov byte [ebp + 0x208], bl
push 0x103
push ebx
lea edx, [ebp + 0x209]
push edx
call fcn.005dfd60
mov byte [ebp + 0x618], bl
push 0x103
push ebx
lea eax, [ebp + 0x619]
push eax
call fcn.005dfd60
mov byte [ebp + 0x30c], bl
push 0x103
push ebx
lea ecx, [ebp + 0x30d]
push ecx
call fcn.005dfd60
mov dword [ebp - 0x1c], 0xa
lea edx, [ebp + 0x30c]
push edx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp + 0x208]
push ecx
call fcn.00511180
add esp, 0x30
test eax, eax
je 0x5122d0
cmp byte [ebp + 0x618], bl
je 0x5122d0
mov byte [ebp], bl
push 0x207
push ebx
lea edx, [ebp + 1]
push edx
call fcn.005dfd60
lea eax, [ebp + 0x618]
push eax
push 0x631e68
lea ecx, [ebp]
push ecx
call fcn.005dfb23
lea edx, [ebp]
push edx
push 0x631e70
push esi
call fcn.004e9030
add esp, 0x24
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x51230a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x924]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x928
mov esp, ebp
pop ebp
ret