Function at 0x41f280
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4680fe
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 0x41f2e2
mov dl, al
xor esi, esi
or dl, 1
push 0x41fa70
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.00467f6e
add esp, 4
jmp 0x41f2e4
xor esi, esi
mov al, byte [0x481194]
test al, al
je 0x41f2f2
call fcn.0040cbc0
mov eax, dword [0x469524]
mov ebx, dword [esp + 0x44c]
mov eax, dword [eax + ebx*4]
test byte [eax + 4], 8
je 0x41f30c
mov eax, dword [eax + 0x1c]
jmp 0x41f312
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx + 0xc]
mov cl, byte [esp + 0x45c]
test cl, cl
je 0x41f411
test al, 1
je 0x41f32a
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.0040bd40
mov eax, dword [esp + 0x450]
mov edi, dword [eax + 0xc]
cmp edi, esi
jl 0x41f36d
mov ecx, dword [0x481288]
mov edx, dword [0x481280]
mov eax, dword [0x481284]
add ecx, edx
add eax, edi
cmp eax, ecx
jbe 0x41f36d
push edi
mov ecx, 0x481280
call fcn.0041f5f0
mov al, byte [0x481194]
test al, al
je 0x41f37b
call fcn.0040cbc0
mov ecx, dword [0x469524]
mov eax, dword [ecx + ebx*4]
test byte [eax + 4], 8
je 0x41f38f
mov eax, dword [eax + 0x1c]
jmp 0x41f395
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 0x41f3ad
call fcn.0040cbc0
mov eax, dword [0x469524]
push edi
push ebp
mov eax, dword [eax + ebx*4]
push eax
test byte [eax + 4], 8
je 0x41f3c5
call fcn.0040c7e0
jmp 0x41f3ca
call fcn.0040be00
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.00451a70
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 0x41f451
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.0041f960
test al, al
jne 0x41f5b5
mov al, byte [0x4823d4]
test al, al
jne 0x41f525
lea ecx, [esp + 0x12c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41f4ad
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 0x41f4c0
push 0x40173c
push 0x450
push esi
call fcn.00431660
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.0040b770
cmp eax, 0xffffffff
mov dword [0x481278], eax
jne 0x41f50c
push 0x40173c
push 0x450
push esi
call fcn.00431660
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.0040bd40
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 0x41f56e
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.0041f6a0
mov dword [esi], 0x402ae4
mov edx, dword [esp + 0x444]
mov dword [esi + 8], edx
jmp 0x41f570
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.0040bd40
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.0040bd40
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