Function at 0x41f6f0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4280f4]
push ebx
push ebp
push esi
lea eax, [eax + eax*2]
sub eax, dword [0x4280e4]
push edi
push 0x5af
mov dword [0x4280e8], eax
call fcn.0040160d
mov ecx, dword [0x4280f4]
mov edx, dword [0x4280e4]
sub edx, dword [0x4280e8]
mov esi, ecx
sub esi, dword [0x428154]
add esp, 4
sub esi, 0x11fe1
add edx, edx
push 0x5af
sub edx, esi
push eax
lea ecx, [edx + ecx - 0x11fcd]
push 0
mov dword [0x428154], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx ecx, byte [0x428160]
mov edx, dword [0x4280e8]
mov ebx, dword [0x4280e4]
mov edi, dword [0x428154]
mov eax, 3
movzx ebp, byte [eax + 0x428158]
sub ebp, ebx
sub ebp, edx
lea edi, [edi + ebp - 0x46]
cmp edi, ecx
je 0x41f78c
add eax, 1
cmp eax, 5
jl 0x41f771
call fcn.0040cca0
mov ecx, dword [0x4280e8]
lea edx, [edi + eax]
add ecx, edx
mov dword [0x4280f4], eax
mov edi, ecx
sub edi, eax
mov eax, dword [0x4280ec]
lea eax, [eax + edi - 0x39]
mov dword [0x4280ec], eax
movzx eax, byte [0x42815c]
cmp eax, 0x19af
jne 0x41f7d5
movzx eax, byte [0x428167]
add dword [0x4280ec], eax
lea esi, [esi + esi - 0x11fef]
add ecx, edx
mov dword [0x4280e8], ecx
call fcn.0040ce50
mov edx, dword [esp + 0x18]
lea ecx, [ebx + ebx]
sub ecx, esi
lea ecx, [ecx + edx - 0x11fef]
mov edx, ecx
sub edx, eax
lea esi, [ecx + esi + 9]
mov dword [0x4280f4], eax
lea ebp, [esi + eax + 9]
movzx eax, byte [0x42815d]
add edx, 0x11
cmp eax, edx
mov dword [0x4280e4], ecx
mov dword [0x4280e8], edx
jb 0x41f83a
add byte [0x428166], cl
lea eax, [esi + ecx]
add edx, eax
lea eax, [esi + esi]
sub eax, edx
mov dword [0x4280e8], edx
lea esi, [eax + ecx - 0x11fef]
mov eax, 6
nop
sub byte [eax + 0x428158], cl
mov edi, edx
sub edi, ecx
sub eax, 1
test eax, eax
lea esi, [esi + edi - 0x39]
jg 0x41f840
mov dword [0x445878], eax
movzx eax, byte [0x42815c]
cmp eax, 0x19af
jne 0x41f877
movzx eax, byte [0x428167]
add edx, eax
mov dword [0x4280e8], edx
sub ecx, edx
add ecx, 0x11
mov dword [0x428154], ecx
call fcn.0041f1d0
mov ecx, dword [0x4280e8]
push 0x5af
lea edx, [ecx + ecx - 0x30]
push 0
mov dword [0x428154], edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
movzx eax, byte [0x42815c]
cmp eax, 0x19af
jne 0x41f8da
mov edx, dword [0x428154]
movzx ecx, byte [0x428167]
add dword [0x4280e8], ecx
lea eax, [edx + edx - 0x11fef]
mov dword [0x428154], eax
call fcn.0041ed30
mov ecx, dword [0x4280e8]
mov edx, dword [0x4280ec]
mov eax, dword [0x428154]
sub ecx, edx
cmp dword [0x4280e4], 0x5fde94b6
lea ecx, [eax + ecx - 0x39]
mov dword [0x428154], ecx
jne 0x41f90d
mov eax, 0x41a48340
sub ecx, ebp
push esi
lea ecx, [edx + ecx - 0x39]
push 0x5af
mov dword [0x4280ec], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
movzx edi, byte [0x428160]
mov esi, dword [0x428154]
mov edx, dword [0x4280e8]
mov ecx, 3
mov dword [0x445878], ecx
movzx ebx, byte [ecx + 0x428158]
sub ebx, esi
sub ebx, eax
lea edx, [edx + ebx - 0x46]
cmp edx, edi
je 0x41f95e
add ecx, 1
cmp ecx, 5
jl 0x41f943
mov edx, dword [0x4280ec]
add edx, ebp
add esi, edx
lea eax, [esi + eax + 9]
mov dword [0x445878], ecx
mov dword [0x428154], esi
mov dword [0x4280e8], eax
call fcn.0040cca0
lea ecx, [ebp + ebp*2]
pop edi
sub ecx, esi
pop esi
pop ebp
mov dword [0x4280f4], ecx
mov eax, 1
pop ebx
ret 0xc