Function at 0x4125e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4708c1
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4e0], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x4dc], xmm0
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x412633
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4e8], edi
mov dword [ebp - 4], 0
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x41265d
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4e4], esi
mov byte [ebp - 4], 1
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x412684
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x4f0], ebx
push 0x15
mov byte [ebp - 4], 2
call fcn.004335e9
test eax, eax
je 0x4126b5
push 0x15
push eax
lea ecx, [ebp - 0x4e8]
call fcn.00401a50
mov edi, dword [ebp - 0x4e8]
push 0x16
call fcn.004335e9
test eax, eax
je 0x4126d4
push 0x16
push eax
lea ecx, [ebp - 0x4e4]
call fcn.00401a50
mov esi, dword [ebp - 0x4e4]
push 0x17
call fcn.004335e9
test eax, eax
je 0x4126f3
push 0x17
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00401a50
mov ebx, dword [ebp - 0x4f0]
push 0x6c
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4cc], edi
push 0
push eax
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4c4], ebx
call fcn.0044f210
mov eax, dword [ebp - 0x4e0]
add esp, 0xc
movaps xmm0, xmmword [0x48a710]
movups xmmword [ebp - 0x454], xmm0
cmp dword [eax + 0x134], 1
jne 0x41288c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044f210
movaps xmm0, xmmword [0x48a740]
lea eax, [ebp - 0x420]
push 0x208
movups xmmword [ebp - 0x444], xmm0
push 0
movaps xmm0, xmmword [0x48a730]
push eax
movups xmmword [ebp - 0x434], xmm0
mov dword [ebp - 0x424], SysStringLen
call fcn.0044f210
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.IMAGERES.DLL
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x485f30
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x4e0]
add esp, 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0043d812
mov ecx, eax
mov eax, dword [ebp - 0x4e0]
push ecx
mov dword [ebp - 0x4f4], ecx
push ecx
cmp dword [eax + 0x138], 1
lea ecx, [ebp - 0x444]
jne 0x412824
add eax, 0x12c
push 1
push ecx
mov edx, eax
mov dword [ebp - 0x4ec], eax
lea ecx, [ebp - 0x218]
call fcn.00406e70
mov eax, dword [ebp - 0x4ec]
add esp, 0x10
test eax, eax
jne 0x41281c
push eax
push 1
jmp 0x412852
mov eax, dword [eax + 4]
push eax
push 1
jmp 0x412852
add eax, 0x12c
push 0
push ecx
mov edx, eax
mov dword [ebp - 0x4ec], eax
lea ecx, [ebp - 0x218]
call fcn.00406e70
mov eax, dword [ebp - 0x4ec]
add esp, 0x10
test eax, eax
je 0x41284f
mov eax, dword [eax + 4]
push eax
push 0
mov eax, dword [ebp - 0x4e0]
push 0x1003
push dword [eax + 0xc8]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
push eax
call fcn.0043c451
mov eax, dword [ebp - 0x4f4]
test eax, eax
je 0x41288c
push dword [eax + 4]
mov eax, dword [ebp - 0x4e0]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [ebp - 0x4e0]
lea eax, [ebp - 0x4dc]
push eax
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_GetWindowRect]
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x4cc]
mov ecx, dword [ebp - 0x4d4]
sub ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x514], eax
mov eax, 0x66666667
imul ecx
mov dword [ebp - 0x520], 0xf
sar edx, 3
mov eax, edx
mov dword [ebp - 0x51c], 0
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x50c], esi
imul eax, dword [ebp + esi*4 - 0x450]
mov dword [ebp - 0x518], eax
lea eax, [ebp - 0x520]
push eax
push esi
push 0x1061
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, 3
jl 0x4128b0
mov ecx, edi
call fcn.004129b0
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
mov esi, dword [ebp - 0x4e4]
mov edi, dword [ebp - 0x4e8]
test eax, eax
jg 0x412952
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41296d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x412989
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret