Function at 0x511c78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x6c
push 0
push 0
dec ecx
jne 0x511c80
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5128fe
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [0x5274e8]
mov dl, 1
mov eax, dword [0x43a768]
call fcn.0043a818
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x41a8e0]
call fcn.00403a4c
mov dword [0x527418], eax
mov dl, 1
mov eax, dword [0x41af44]
call fcn.00403a4c
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x41af44]
call fcn.00403a4c
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41af44]
call fcn.00403a4c
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x41af44]
call fcn.00403a4c
mov dword [ebp - 0x20], eax
mov dl, 1
mov eax, dword [0x41af44]
call fcn.00403a4c
mov dword [ebp - 0x24], eax
mov dl, 1
mov eax, dword [0x41af44]
call fcn.00403a4c
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [0x41a8e0]
call fcn.00403a4c
mov dword [0x527404], eax
push 0
lea eax, [ebp - 0x198]
push eax
mov ecx, 0x512914
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x198]
mov eax, 0x527420
call fcn.004048e4
push 0
lea eax, [ebp - 0x19c]
push eax
mov ecx, 0x512938
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x19c]
mov eax, 0x527428
call fcn.004048e4
push 0
lea eax, [ebp - 0x1a0]
push eax
mov ecx, 0x51294c
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1a0]
mov eax, 0x527430
call fcn.004048e4
push 0
lea eax, [ebp - 0x1a4]
push eax
mov ecx, 0x512960
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1a4]
mov eax, 0x52743c
call fcn.004048e4
push 0
lea eax, [ebp - 0x1a8]
push eax
mov ecx, 0x512974
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1a8]
mov eax, 0x52744c
call fcn.004048e4
push 0
lea eax, [ebp - 0x1ac]
push eax
mov ecx, 0x512988
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1ac]
mov eax, 0x52742c
call fcn.004048e4
mov eax, dword [0x525460]
push eax
mov ecx, 0x51299c
mov edx, 0x5129ac
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [0x525460], eax
mov eax, dword [0x525468]
push eax
lea eax, [ebp - 0x1b0]
push eax
mov ecx, 0x5129bc
mov edx, 0x5129ac
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1b0]
mov eax, 0x525468
call fcn.004048e4
push 0x5129c8
lea eax, [ebp - 0x1b8]
push eax
mov ecx, 0x5129d8
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x1b4]
call fcn.00408d7c
mov edx, dword [ebp - 0x1b4]
mov eax, 0x527450
call fcn.004048e4
mov eax, dword [0x52546c]
push eax
lea eax, [ebp - 0x1bc]
push eax
mov ecx, 0x5129ec
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1bc]
mov eax, 0x52546c
call fcn.004048e4
mov eax, dword [0x527434]
push eax
lea eax, [ebp - 0x1c0]
push eax
mov ecx, 0x512a00
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1c0]
mov eax, 0x527434
call fcn.004048e4
mov eax, dword [0x527518]
push eax
lea eax, [ebp - 0x1c4]
push eax
mov ecx, 0x5129bc
mov edx, 0x512a14
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1c4]
mov eax, 0x527518
call fcn.004048e4
mov eax, dword [0x525478]
push eax
lea eax, [ebp - 0x1cc]
push eax
mov ecx, 0x512a24
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x1cc]
lea edx, [ebp - 0x1c8]
call fcn.00408d7c
mov edx, dword [ebp - 0x1c8]
mov eax, 0x525478
call fcn.004048e4
mov eax, dword [0x525480]
push eax
lea eax, [ebp - 0x1d4]
push eax
mov ecx, 0x512a3c
mov edx, 0x512928
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x1d4]
lea edx, [ebp - 0x1d0]
call fcn.00408d7c
mov edx, dword [ebp - 0x1d0]
mov eax, 0x525480
call fcn.004048e4
mov eax, dword [0x525470]
push eax
lea eax, [ebp - 0x1d8]
push eax
mov ecx, 0x5129bc
mov edx, 0x512a54
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x1d8]
mov eax, 0x525470
call fcn.004048e4
xor edx, edx
push ebp
push 0x512518
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 0x14]
mov edx, 0x512a68
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x48]
mov ecx, dword [ebp - 0x28]
mov edx, 0x512a78
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512522
mov byte [ebp - 0x39], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x38]
mov edx, 0x90
call fcn.00404edc
push 0x90
mov eax, dword [ebp - 0x38]
call fcn.00404d50
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [ebp - 0x38]
call fcn.00404d50
call fcn.0040a090
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00404edc
push dword [ebp - 0x38]
push 0x512a88
push dword [0x5274e8]
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00404c10
mov edx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, 0x512a94
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5122c0
inc ebx
xor esi, esi
lea ecx, [ebp - 0x1e0]
mov edx, esi
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1e0]
mov edx, 0x512aa0
call fcn.00404c9c
jne 0x5120df
mov byte [ebp - 0x39], 1
cmp byte [ebp - 0x39], 1
jne 0x5122b8
lea ecx, [ebp - 0x1e8]
lea edx, [esi + 1]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1e4]
mov edx, 1
call fcn.0043a3e4
mov eax, dword [ebp - 0x1e4]
mov edx, 0x512a94
call fcn.00404c9c
je 0x5122b4
lea ecx, [ebp - 0x1f0]
lea edx, [esi + 1]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1f0]
lea edx, [ebp - 0x1ec]
call fcn.00408f90
cmp dword [ebp - 0x1ec], 0
je 0x5122b8
lea ecx, [ebp - 0x1f4]
lea edx, [esi + 1]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1f8]
lea edx, [esi + 1]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1f8]
call fcn.00404d50
mov ecx, eax
mov edx, 0x512aac
mov eax, 0x512acc
call fcn.0041d1dc
cmp eax, 3
jle 0x5122b8
mov edx, dword [0x50f6d8]
mov eax, 0x14
call fcn.0040578c
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1fc]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x10]
call fcn.004048e4
push 0
lea eax, [ebp - 0x200]
push eax
mov byte [ebp - 0x204], 0x3d
lea ecx, [ebp - 0x204]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0051087c
mov eax, dword [ebp - 0x10]
add eax, 4
mov edx, dword [ebp - 0x2c]
call fcn.004048e4
lea ecx, [ebp - 0x208]
mov edx, 1
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x208]
mov eax, dword [ebp - 0x10]
call fcn.004048e4
lea ecx, [ebp - 0x20c]
mov edx, 2
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x10]
add eax, 8
call fcn.004048e4
lea ecx, [ebp - 0x210]
mov edx, 3
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x10]
add eax, 0xc
call fcn.004048e4
lea ecx, [ebp - 0x214]
mov edx, 4
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x10]
add eax, 0x10
call fcn.004048e4
mov edx, dword [ebp - 0x10]
mov eax, dword [0x527418]
call fcn.0041d444
jmp 0x5122b8
mov byte [ebp - 0x39], 0
inc esi
dec ebx
jne 0x5120b9
mov eax, dword [ebp - 0x20]
call fcn.00403a7c
mov eax, dword [ebp - 0x24]
call fcn.00403a7c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5124ca
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x218]
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x218]
call fcn.00404d50
mov ecx, eax
mov edx, 0x512aac
mov eax, 0x512acc
call fcn.0041d1dc
cmp eax, 6
jle 0x512336
mov edx, dword [0x50f6a8]
mov eax, 0x175
call fcn.0040578c
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x31c]
xor edx, edx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x31c]
lea eax, [ebp - 0x318]
mov ecx, 0xff
call fcn.00404b2c
lea edx, [ebp - 0x318]
mov eax, dword [ebp - 0xc]
mov cl, 0x96
call fcn.004031e8
lea ecx, [ebp - 0x320]
mov edx, 1
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x320]
lea eax, [ebp - 0x318]
mov ecx, 0xff
call fcn.00404b2c
lea edx, [ebp - 0x318]
mov eax, dword [ebp - 0xc]
add eax, 0x97
mov cl, 0x96
call fcn.004031e8
lea ecx, [ebp - 0x324]
mov edx, 2
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x324]
mov eax, dword [ebp - 0xc]
add eax, 0x169
call fcn.004048e4
lea ecx, [ebp - 0x328]
mov edx, 3
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x328]
lea eax, [ebp - 0x318]
mov ecx, 0xff
call fcn.00404b2c
lea edx, [ebp - 0x318]
mov eax, dword [ebp - 0xc]
add eax, 0x12e
mov cl, 0x32
call fcn.004031e8
lea ecx, [ebp - 0x32c]
mov edx, 4
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x32c]
call fcn.0040949c
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x161], eax
lea ecx, [ebp - 0x330]
mov edx, 5
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x330]
mov eax, dword [ebp - 0xc]
add eax, 0x165
call fcn.004048e4
lea ecx, [ebp - 0x334]
mov edx, 6
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x334]
mov eax, dword [ebp - 0xc]
add eax, 0x16d
call fcn.004048e4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x171], 0x15e1
lea ecx, [ebp - 0x338]
mov edx, 7
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x338]
call fcn.0040949c
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x171], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [0x527404]
call fcn.0041d444
inc esi
dec ebx
jne 0x5122e6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jge 0x512507
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.0049b524
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov edx, 0x512af4
call fcn.0045bd1c
mov eax, 0x5274e4
mov edx, 0x512af4
call fcn.004048e4
mov eax, dword [ebp - 0x18]
call fcn.00403a7c
mov eax, dword [ebp - 0x14]
call fcn.00403a7c
ret