Function at 0x41f930
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4fe38b
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x664], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x67c]
mov dword fs:[0], eax
call fcn.00491fb0
test al, al
je 0x41fd10
xor ebx, ebx
cmp byte [0x53788f], bl
mov dword [esp + 0x48], 0x538898
sete al
mov byte [esp + 0x4c], al
cmp al, 1
jne 0x41f9a6
cmp dword [0x5388b0], ebx
je 0x41f9a6
push 0x538898
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x684], ebx
jmp 0x41f9bf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x103
mov dword [esp + 0x18], eax
lea eax, [esp + 0x471]
push ebx
push eax
mov dword [0x538340], ebx
mov byte [esp + 0x478], bl
call fcn.004b6dc0
push 0x103
lea ecx, [esp + 0x61]
push ebx
push ecx
mov byte [esp + 0x68], bl
call fcn.004b6dc0
add esp, 0x18
push 0x104
lea edx, [esp + 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x46c]
push ecx
call fcn.00404330
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x44], eax
call fcn.00404330
push 0x104
mov dword [esp + 0x40], eax
lea eax, [esp + 0x371]
push ebx
push eax
mov byte [esp + 0x378], bl
call fcn.004b6dc0
push 0x104
lea ecx, [esp + 0x16d]
push ebx
push ecx
mov byte [esp + 0x174], bl
call fcn.004b6dc0
add esp, 0x20
xor eax, eax
jmp 0x41fa80
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x154], cl
inc eax
cmp cl, bl
jne 0x41fa80
xor eax, eax
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x364], cl
inc eax
cmp cl, bl
jne 0x41fa92
push 0x51234c
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41fab1
lea edi, [esp + 0x154]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x41fac2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x51233c
rep movsb byte es:[edi], byte [esi]
call fcn.00404690
add esp, 4
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41faf0
lea edi, [esp + 0x364]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x41fb03
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x364]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00404330
mov edi, eax
lea eax, [esp + 0x158]
push eax
call fcn.00404330
mov edx, dword [esp + 0x1c]
add esp, 8
push 0x1c
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
mov ebp, eax
call dword [0x5385ec]
cmp eax, 0x1c
jne 0x41fcb4
jmp 0x41fb60
test dword [esp + 0x30], 0x1000000
mov eax, dword [esp + 0x18]
jne 0x41fb79
mov ecx, dword [esp + 0x24]
add eax, ecx
jmp 0x41fc98
cmp dword [esp + 0x1c], eax
je 0x41fb8a
mov edx, dword [esp + 0x24]
add eax, edx
jmp 0x41fc98
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x53ac58
call fcn.0041f7e0
mov eax, dword [esp + 0x40]
mov esi, dword [0x53ac70]
cmp eax, ebx
je 0x41fbb8
cmp eax, dword [0x53ac58]
je 0x41fbbd
call fcn.004b7c48
cmp dword [esp + 0x44], esi
jne 0x41fc8d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x25c]
push edx
push eax
push ecx
mov ecx, dword [0x536dc0]
mov byte [esp + 0x268], bl
mov byte [esp + 0x57c], bl
call fcn.00408d80
lea edx, [esp + 0x25c]
push edx
call fcn.0043f6f0
add esp, 4
xor eax, eax
jmp 0x41fc10
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x570], cl
inc eax
cmp cl, bl
jne 0x41fc10
lea eax, [esp + 0x570]
push 0x5c
push eax
call fcn.004b6d8c
add esp, 8
cmp eax, ebx
je 0x41fc3b
mov byte [eax], bl
lea ecx, [esp + 0x570]
push ecx
call fcn.00404330
add esp, 4
cmp eax, dword [esp + 0x3c]
je 0x41fc8d
cmp eax, dword [esp + 0x34]
je 0x41fc8d
cmp eax, edi
je 0x41fc8d
cmp eax, ebp
je 0x41fc8d
mov eax, dword [esp + 0x18]
inc dword [0x538340]
lea edx, [esp + 0x25c]
push edx
push eax
push 0x51232c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx]
mov edx, dword [esp + 0x14]
push 0x1c
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
call dword [0x5385ec]
cmp eax, 0x1c
je 0x41fb60
mov eax, dword [0x53ac70]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x53ac58
call fcn.0041de60
mov eax, dword [0x53ac70]
mov dword [eax + 4], eax
mov eax, dword [0x53ac70]
mov dword [0x53ac74], ebx
mov dword [eax], eax
mov eax, dword [0x53ac70]
mov dword [eax + 8], eax
jmp 0x41fcf6
cmp byte [esp + 0x4c], 1
jne 0x41fd10
cmp dword [0x5388b0], ebx
je 0x41fd10
push 0x538898
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x67c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x664]
xor ecx, esp
call fcn.004b6da3
add esp, 0x674
ret