Function at 0x41f100
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467c0e
push eax
mov al, byte [0x481294]
mov dword fs:[0], esp
sub esp, 0x424
test al, 1
push ebx
push ebp
push esi
push edi
jne 0x41f162
mov dl, al
xor esi, esi
or dl, 1
push 0x41f8f0
mov byte [0x481294], dl
mov dword [0x481280], esi
mov dword [0x481284], esi
mov dword [0x481288], esi
mov dword [0x48128c], esi
mov dword [0x481290], esi
call fcn.00467a7e
add esp, 4
jmp 0x41f164
xor esi, esi
mov al, byte [0x481194]
test al, al
je 0x41f172
call fcn.0040ca50
mov eax, dword [0x469524]
mov ebx, dword [esp + 0x44c]
mov eax, dword [eax + ebx*4]
test byte [eax + 4], 8
je 0x41f18c
mov eax, dword [eax + 0x1c]
jmp 0x41f192
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx + 0xc]
mov cl, byte [esp + 0x45c]
test cl, cl
je 0x41f291
test al, 1
je 0x41f1aa
and al, 0xfe
add eax, 2
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
push edx
push esi
push eax
push ebx
call fcn.0040bbd0
mov eax, dword [esp + 0x450]
mov edi, dword [eax + 0xc]
cmp edi, esi
jl 0x41f1ed
mov ecx, dword [0x481288]
mov edx, dword [0x481280]
mov eax, dword [0x481284]
add ecx, edx
add eax, edi
cmp eax, ecx
jbe 0x41f1ed
push edi
mov ecx, 0x481280
call fcn.0041f470
mov al, byte [0x481194]
test al, al
je 0x41f1fb
call fcn.0040ca50
mov ecx, dword [0x469524]
mov eax, dword [ecx + ebx*4]
test byte [eax + 4], 8
je 0x41f20f
mov eax, dword [eax + 0x1c]
jmp 0x41f215
mov edx, dword [eax + 0x20]
mov eax, dword [edx + 0xc]
mov ebp, dword [0x481280]
mov dword [esp + 0x14], eax
mov al, byte [0x481194]
test al, al
je 0x41f22d
call fcn.0040ca50
mov eax, dword [0x469524]
push edi
push ebp
mov eax, dword [eax + ebx*4]
push eax
test byte [eax + 4], 8
je 0x41f245
call fcn.0040c670
jmp 0x41f24a
call fcn.0040bc90
mov edx, dword [0x481280]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x2e
lea edi, [ecx + edx + 1]
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov esi, eax
push esi
call fcn.00451620
mov ebp, eax
mov byte [esi], 0
mov ecx, dword [esp + 0x450]
xor esi, esi
mov edx, ecx
mov bx, word [ecx + 6]
mov eax, dword [edx + 8]
mov dword [esp + 0x10], eax
jmp 0x41f2d1
lea ecx, [esp + 0x230]
lea edx, [esp + 0x2c]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x45c]
push edx
push esi
push esi
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
mov eax, dword [esp + 0x468]
add esp, 0x14
lea edi, [esp + 0x2c]
lea ebp, [esp + 0x230]
mov ecx, dword [eax + 4]
mov bx, word [eax]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x448]
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call fcn.0041f7e0
test al, al
jne 0x41f435
mov al, byte [0x4823d4]
test al, al
jne 0x41f3a5
lea ecx, [esp + 0x12c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41f32d
lea edx, [esp + 0x330]
lea eax, [esp + 0x12c]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x41f340
push 0x40173c
push 0x450
push esi
call fcn.00431420
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
lea ecx, [esp + 0x340]
push 0x8042
push ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.0040b600
cmp eax, 0xffffffff
mov dword [0x481278], eax
jne 0x41f38c
push 0x40173c
push 0x450
push esi
call fcn.00431420
mov eax, dword [0x481278]
add esp, 0xc
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
push edx
push 2
push esi
push eax
call fcn.0040bbd0
mov byte [0x4823d4], 1
push 0x68
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov dword [esp + 0x43c], 0
je 0x41f3ee
mov eax, dword [esp + 0x10]
mov ecx, dword [0x481278]
push eax
push ebx
push 2
push ebp
push edi
push ecx
mov ecx, esi
call fcn.0041f520
mov dword [esi], 0x402adc
mov edx, dword [esp + 0x444]
mov dword [esi + 8], edx
jmp 0x41f3f0
xor esi, esi
mov eax, dword [esp + 0x448]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x43c], 0xffffffff
mov dword [esp + 0x18], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov dword [edx + ecx*4], esi
mov edi, dword [eax + 0xc]
inc edi
mov dword [eax + 0xc], edi
mov ecx, dword [0x481278]
lea eax, [esp + 0x18]
push eax
push 2
push 0
push ecx
call fcn.0040bbd0
xor esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], esi
push edx
push esi
push eax
push ecx
call fcn.0040bbd0
pop edi
pop esi
mov ecx, dword [esp + 0x42c]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret 0x1c