Function at 0x417e20
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4b1240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40c], esp
push 7
xor edi, edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push str.Thunder
mov byte [ecx], 0
call fcn.00414ba0
mov ecx, dword [0x4b290c]
call fcn.00402870
lea eax, [ebp - 0x404]
push str.DatamoviesThunder.bik
push eax
call fcn.00409550
lea ecx, [ebp - 0x404]
push 0x497e88
push ecx
call fcn.004644f9
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x418150
mov edx, dword [0x4b61f8]
cmp edx, dword [0x4b61fc]
je 0x41813b
push edi
push 0x69fe0
push ebx
call fcn.00464bad
mov ecx, dword [0x4b61fc]
sub ecx, dword [0x4b61f8]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
push ebx
mov eax, edx
push 1
shr eax, 0x1f
lea ecx, [ebp - 0x414]
add eax, edx
push 4
push ecx
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], edi
call fcn.00464d80
add esp, 0x1c
cmp dword [ebp - 0x414], edi
jle 0x41813b
mov eax, dword [0x4b61f8]
mov dword [ebp - 0x408], edi
cmp byte [ebp + 8], 0
push ebx
push 1
push 1
je 0x417f18
lea edx, [ebp + 8]
jmp 0x417f1e
lea ecx, [edi + edi*8]
lea edx, [eax + ecx*4]
push edx
call fcn.00464d80
mov eax, dword [0x4b61f8]
add esp, 0x10
lea esi, [edi + edi*8]
push ebx
add esi, esi
push 1
add esi, esi
lea ecx, [esi + eax + 4]
push 4
push ecx
call fcn.00464d80
mov edx, dword [0x4b61f8]
push ebx
push 1
lea eax, [esi + edx + 8]
push 4
push eax
call fcn.00464d80
mov ecx, dword [0x4b61f8]
push ebx
push 1
lea edx, [esi + ecx + 0xc]
push 4
push edx
call fcn.00464d80
add esp, 0x30
cmp byte [ebp + 8], 0
je 0x417f86
test edi, edi
jne 0x417f86
mov eax, dword [0x4b61f8]
cmp dword [eax + 0x10], edi
jle 0x417f86
mov dword [eax + 0x10], edi
mov eax, dword [0x4b61f8]
push ebx
push 1
lea ecx, [esi + eax + 0x10]
push 4
push ecx
call fcn.00464d80
mov eax, dword [0x4b61f8]
mov edx, dword [esi + eax + 0x14]
add esp, 0x10
cmp edx, dword [esi + eax + 0x18]
je 0x418128
mov ecx, dword [esi + eax + 0x18]
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 3
push ebx
mov eax, edx
push 1
shr eax, 0x1f
lea ecx, [ebp - 0x410]
add eax, edx
push 4
push ecx
mov dword [ebp - 0x410], eax
call fcn.00464d80
add esp, 0x10
cmp dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
jle 0x418123
xor edi, edi
lea ebx, [ebx]
cmp byte [ebp + 8], 0
je 0x418025
cmp dword [ebp - 0x408], 0
jne 0x418025
mov edx, dword [0x4b61f8]
mov eax, dword [edx + 0x14]
cmp dword [eax + edi], 0
jle 0x418025
mov dword [eax + edi], 0
mov ecx, dword [0x4b61f8]
mov edx, dword [esi + ecx + 0x14]
push ebx
push 1
add edx, edi
push 4
push edx
call fcn.00464d80
add esp, 0x10
cmp byte [ebp + 8], 0
je 0x418067
cmp dword [ebp - 0x408], 0
jne 0x418067
mov eax, dword [0x4b61f8]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + edi + 4], 0
lea eax, [ecx + edi + 4]
jle 0x418067
mov dword [eax], 0
mov edx, dword [0x4b61f8]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 4]
push 4
push ecx
call fcn.00464d80
mov edx, dword [0x4b61f8]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 8]
push 4
push ecx
call fcn.00464d80
mov edx, dword [0x4b61f8]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 0xc]
push 4
push ecx
call fcn.00464d80
add esp, 0x30
cmp byte [ebp + 8], 0
je 0x4180e5
cmp dword [ebp - 0x408], 0
jne 0x4180e5
mov edx, dword [0x4b61f8]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + edi + 0x10]
lea eax, [eax + edi + 0x10]
cmp ecx, 0x34
je 0x4180e5
cmp ecx, 0x35
je 0x4180e5
mov dword [eax], 0
mov ecx, dword [0x4b61f8]
mov edx, dword [esi + ecx + 0x14]
push ebx
push 1
lea eax, [edx + edi + 0x10]
push 4
push eax
call fcn.00464d80
mov eax, dword [ebp - 0x40c]
inc eax
add esp, 0x10
add edi, 0x14
mov dword [ebp - 0x40c], eax
cmp eax, dword [ebp - 0x410]
jl 0x418000
mov edi, dword [ebp - 0x408]
mov eax, dword [0x4b61f8]
inc edi
mov dword [ebp - 0x408], edi
cmp edi, dword [ebp - 0x414]
jl 0x417f08
push ebx
call fcn.004643ac
lea ecx, [ebp - 0x404]
push ecx
call fcn.00408e60
add esp, 8
lea edx, [ebp - 0x104]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x204]
push 0x49864c
push eax
call fcn.00463940
lea eax, [ebp - 0x204]
add esp, 8
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418180
lea edi, [ebp - 0x104]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x418190
fld1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
lea ecx, [ebp - 0x104]
fst dword [esp]
push 1
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40c], esp
push 7
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.Thunder
mov byte [ecx], 0
call fcn.00414ba0
mov ecx, dword [0x4b290c]
call fcn.00402ce0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00463931
mov esp, ebp
pop ebp
ret