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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a4cf0]
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.004141d0
mov ecx, dword [0x4a63f8]
call fcn.00402760
lea eax, [ebp - 0x404]
push str.DatamoviesThunder.bik
push eax
call fcn.00409630
lea ecx, [ebp - 0x404]
push 0x48c130
push ecx
call fcn.0045cbc7
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x4189d0
mov edx, dword [0x4a9bf8]
cmp edx, dword [0x4a9bfc]
je 0x4189bb
push edi
push 0x69fe0
push ebx
call fcn.0045d25f
mov ecx, dword [0x4a9bfc]
sub ecx, dword [0x4a9bf8]
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.0045d432
add esp, 0x1c
cmp dword [ebp - 0x414], edi
jle 0x4189bb
mov eax, dword [0x4a9bf8]
mov dword [ebp - 0x408], edi
cmp byte [ebp + 8], 0
push ebx
push 1
push 1
je 0x418798
lea edx, [ebp + 8]
jmp 0x41879e
lea ecx, [edi + edi*8]
lea edx, [eax + ecx*4]
push edx
call fcn.0045d432
mov eax, dword [0x4a9bf8]
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.0045d432
mov edx, dword [0x4a9bf8]
push ebx
push 1
lea eax, [esi + edx + 8]
push 4
push eax
call fcn.0045d432
mov ecx, dword [0x4a9bf8]
push ebx
push 1
lea edx, [esi + ecx + 0xc]
push 4
push edx
call fcn.0045d432
add esp, 0x30
cmp byte [ebp + 8], 0
je 0x418806
test edi, edi
jne 0x418806
mov eax, dword [0x4a9bf8]
cmp dword [eax + 0x10], edi
jle 0x418806
mov dword [eax + 0x10], edi
mov eax, dword [0x4a9bf8]
push ebx
push 1
lea ecx, [esi + eax + 0x10]
push 4
push ecx
call fcn.0045d432
mov eax, dword [0x4a9bf8]
mov edx, dword [esi + eax + 0x14]
add esp, 0x10
cmp edx, dword [esi + eax + 0x18]
je 0x4189a8
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.0045d432
add esp, 0x10
cmp dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
jle 0x4189a3
xor edi, edi
lea ebx, [ebx]
cmp byte [ebp + 8], 0
je 0x4188a5
cmp dword [ebp - 0x408], 0
jne 0x4188a5
mov edx, dword [0x4a9bf8]
mov eax, dword [edx + 0x14]
cmp dword [eax + edi], 0
jle 0x4188a5
mov dword [eax + edi], 0
mov ecx, dword [0x4a9bf8]
mov edx, dword [esi + ecx + 0x14]
push ebx
push 1
add edx, edi
push 4
push edx
call fcn.0045d432
add esp, 0x10
cmp byte [ebp + 8], 0
je 0x4188e7
cmp dword [ebp - 0x408], 0
jne 0x4188e7
mov eax, dword [0x4a9bf8]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + edi + 4], 0
lea eax, [ecx + edi + 4]
jle 0x4188e7
mov dword [eax], 0
mov edx, dword [0x4a9bf8]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 4]
push 4
push ecx
call fcn.0045d432
mov edx, dword [0x4a9bf8]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 8]
push 4
push ecx
call fcn.0045d432
mov edx, dword [0x4a9bf8]
mov eax, dword [esi + edx + 0x14]
push ebx
push 1
lea ecx, [eax + edi + 0xc]
push 4
push ecx
call fcn.0045d432
add esp, 0x30
cmp byte [ebp + 8], 0
je 0x418965
cmp dword [ebp - 0x408], 0
jne 0x418965
mov edx, dword [0x4a9bf8]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + edi + 0x10]
lea eax, [eax + edi + 0x10]
cmp ecx, 0x34
je 0x418965
cmp ecx, 0x35
je 0x418965
mov dword [eax], 0
mov ecx, dword [0x4a9bf8]
mov edx, dword [esi + ecx + 0x14]
push ebx
push 1
lea eax, [edx + edi + 0x10]
push 4
push eax
call fcn.0045d432
mov eax, dword [ebp - 0x40c]
inc eax
add esp, 0x10
add edi, 0x14
mov dword [ebp - 0x40c], eax
cmp eax, dword [ebp - 0x410]
jl 0x418880
mov edi, dword [ebp - 0x408]
mov eax, dword [0x4a9bf8]
inc edi
mov dword [ebp - 0x408], edi
cmp edi, dword [ebp - 0x414]
jl 0x418788
push ebx
call fcn.0045ca7a
lea ecx, [ebp - 0x404]
push ecx
call fcn.00408fa0
add esp, 8
lea edx, [ebp - 0x104]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x204]
push 0x48c8e0
push eax
call fcn.0045bff0
lea eax, [ebp - 0x204]
add esp, 8
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418a00
lea edi, [ebp - 0x104]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x418a10
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.004141d0
mov ecx, dword [0x4a63f8]
call fcn.00402bd0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bfe1
mov esp, ebp
pop ebp
ret