Function at 0x41203c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42f62c
call fcn.00417a2c
sub esp, 0x438
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412476
cmp dword [ebp + 0x18], ebx
je 0x412476
mov al, byte [ebp + 0xb]
push esi
push edi
push ebx
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.00406630
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
cmp dword [ebp + 0x10], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
je 0x412100
push dword [ebp + 0x10]
call fcn.004179b0
test eax, eax
pop ecx
jbe 0x412100
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
push edi
call fcn.004179b0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.004062f0
mov esi, 0x439ce0
mov byte [ebp - 4], 1
push esi
call fcn.004179b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406230
push dword [ebp + 0x10]
call fcn.004179b0
pop ecx
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x10]
call fcn.00406230
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp + 0x10]
push dword [ebp - 0x30]
push eax
call fcn.00406540
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00402820
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
push edi
call fcn.004179b0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.004062f0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp + 0x10]
push dword [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
call fcn.00406540
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00402820
mov al, byte [ebp + 0xb]
push ebx
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00406630
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 8]
push 0x43a37c
push esi
mov byte [ebp - 4], 3
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
jne 0x412366
push 0x439f28
push esi
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
jne 0x412366
mov al, byte [0x441334]
push 0x40
mov byte [ebp - 0x138], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x137]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x340]
push edi
push eax
push ebx
call fcn.00412bc9
add esp, 0xc
lea eax, [ebp - 0x340]
push esi
push eax
mov esi, 0x43951c
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.004168c1
lea eax, [ebp - 0x138]
push eax
call fcn.0040f1bb
add esp, 0x14
test eax, eax
je 0x412245
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
lea eax, [ebp - 0x138]
push eax
call fcn.004179b0
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004062f0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 5
call fcn.004066b0
push dword [eax]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.00406540
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00402820
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.004168c1
lea eax, [ebp - 0x138]
push eax
call fcn.0040f1bb
add esp, 0x14
test eax, eax
je 0x4122d9
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
lea eax, [ebp - 0x138]
push eax
call fcn.004179b0
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004062f0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.004066b0
push dword [eax]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.00406540
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00402820
lea eax, [ebp - 0x444]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.004168c1
lea eax, [ebp - 0x138]
push eax
call fcn.0040f1bb
add esp, 0x14
test eax, eax
je 0x4123c1
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
push dword [ebp + 8]
call fcn.004179b0
pop ecx
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.004062f0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 7
call fcn.004066b0
push dword [eax]
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00406540
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x1c]
jmp 0x4123bc
push esi
call fcn.0040efe8
test eax, eax
pop ecx
je 0x4123c1
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
push esi
call fcn.004179b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004062f0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.004066b0
push dword [eax]
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00406540
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402820
cmp dword [ebp - 0x20], ebx
je 0x412452
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
cmp edi, eax
je 0x412452
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
cmp esi, eax
je 0x41244b
mov eax, dword [esi + 0xc]
mov ecx, 0x4312e0
cmp eax, ebx
je 0x4123ea
mov ecx, eax
mov eax, dword [edi + 0xc]
cmp eax, ebx
jne 0x4123f6
mov eax, 0x4312e0
push dword [ebp + 0x1c]
push ecx
push dword [ebp + 0x14]
push eax
push str.GetValueByQualifier__s___s___s___d__n
push 0x441540
call fcn.004089c5
mov eax, dword [esi + 0xc]
add esp, 0x18
cmp eax, ebx
jne 0x41241c
mov eax, 0x4312e0
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x412428
mov ecx, 0x4312e0
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0x441334
push dword [ebp + 0x14]
push ecx
call fcn.00412014
add esp, 0x18
test eax, eax
ja 0x412471
mov esi, dword [esi]
cmp esi, dword [ebp - 0x24]
jne 0x4123dc
mov edi, dword [edi]
cmp edi, dword [ebp - 0x30]
jne 0x4123d3
xor esi, esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00405f00
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405f00
mov eax, esi
pop edi
pop esi
jmp 0x412478
push 1
pop esi
jmp 0x412454
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret