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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ab000]
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.00416c80
mov ecx, dword [0x4ac6d8]
call fcn.00402d30
lea eax, [ebp - 0x404]
push str.DatamoviesThunder.bik
push eax
call fcn.00409dc0
lea ecx, [ebp - 0x404]
push 0x492998
push ecx
call fcn.0045e277
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x419de9
mov edx, dword [0x4aff3c]
cmp edx, dword [0x4aff40]
je 0x419dd4
push edi
push 0x69fe0
push ebx
call fcn.0045e90f
mov ecx, dword [0x4aff40]
sub ecx, dword [0x4aff3c]
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.0045eae2
add esp, 0x1c
cmp dword [ebp - 0x414], edi
jle 0x419dd4
mov eax, dword [0x4aff3c]
mov dword [ebp - 0x408], edi
cmp byte [ebp + 8], 0
push ebx
push 1
push 1
je 0x419bb8
lea edx, [ebp + 8]
jmp 0x419bbe
lea ecx, [edi + edi*8]
lea edx, [eax + ecx*4]
push edx
call fcn.0045eae2
mov eax, dword [0x4aff3c]
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.0045eae2
mov edx, dword [0x4aff3c]
push ebx
push 1
lea eax, [esi + edx + 8]
push 4
push eax
call fcn.0045eae2
mov ecx, dword [0x4aff3c]
push ebx
push 1
lea edx, [esi + ecx + 0xc]
push 4
push edx
call fcn.0045eae2
add esp, 0x30
cmp byte [ebp + 8], 0
je 0x419c26
test edi, edi
jne 0x419c26
mov eax, dword [0x4aff3c]
cmp dword [eax + 0x10], edi
jle 0x419c26
mov dword [eax + 0x10], edi
mov eax, dword [0x4aff3c]
push ebx
push 1
lea ecx, [esi + eax + 0x10]
push 4
push ecx
call fcn.0045eae2
mov eax, dword [0x4aff3c]
mov edx, dword [esi + eax + 0x14]
add esp, 0x10
cmp edx, dword [esi + eax + 0x18]
je 0x419dc1
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.0045eae2
add esp, 0x10
cmp dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
jle 0x419dbc
xor edi, edi
lea ebx, [ebx]
cmp byte [ebp + 8], 0
je 0x419cc5
cmp dword [ebp - 0x408], 0
jne 0x419cc5
mov edx, dword [0x4aff3c]
mov eax, dword [edx + 0x14]
cmp dword [eax + edi], 0
jle 0x419cc5
mov dword [eax + edi], 0
mov ecx, dword [0x4aff3c]
mov edx, dword [esi + ecx + 0x14]
push ebx
push 1
add edx, edi
push 4
push edx
call fcn.0045eae2
add esp, 0x10
cmp byte [ebp + 8], 0
je 0x419d07
cmp dword [ebp - 0x408], 0
jne 0x419d07
mov eax, dword [0x4aff3c]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + edi + 4], 0
lea eax, [ecx + edi + 4]
jle 0x419d07
mov dword [eax], 0
mov edx, dword [0x4aff3c]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 4]
push 4
push ecx
call fcn.0045eae2
mov edx, dword [0x4aff3c]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 8]
push 4
push ecx
call fcn.0045eae2
mov edx, dword [0x4aff3c]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 0xc]
push 4
push ecx
call fcn.0045eae2
add esp, 0x30
cmp byte [ebp + 8], 0
je 0x419d7e
cmp dword [ebp - 0x408], 0
jne 0x419d7e
mov edx, dword [0x4aff3c]
mov eax, dword [edx + 0x14]
cmp dword [eax + edi + 0x10], 0x32
lea eax, [eax + edi + 0x10]
je 0x419d7e
mov dword [eax], 0
mov ecx, dword [0x4aff3c]
mov edx, dword [esi + ecx + 0x14]
push ebx
push 1
lea eax, [edx + edi + 0x10]
push 4
push eax
call fcn.0045eae2
mov eax, dword [ebp - 0x40c]
inc eax
add esp, 0x10
add edi, 0x14
mov dword [ebp - 0x40c], eax
cmp eax, dword [ebp - 0x410]
jl 0x419ca0
mov edi, dword [ebp - 0x408]
mov eax, dword [0x4aff3c]
inc edi
mov dword [ebp - 0x408], edi
cmp edi, dword [ebp - 0x414]
jl 0x419ba8
push ebx
call fcn.0045e12a
lea ecx, [ebp - 0x404]
push ecx
call fcn.00409690
add esp, 8
lea edx, [ebp - 0x104]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x204]
push 0x493030
push eax
call fcn.0045d6a0
lea eax, [ebp - 0x204]
add esp, 8
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419e17
lea edi, [ebp - 0x104]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419e27
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.00416c80
mov ecx, dword [0x4ac6d8]
call fcn.00403240
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d691
mov esp, ebp
pop ebp
ret