Function at 0x418157
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1047c
call fcn.00453130
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [0x4a3fa0], 0x200
mov dword [0x4a3d68], 0x31302e31
cmp dword [ebp + 0xc], edi
je 0x4182ab
push 0x50
lea eax, [ebp - 0x10478]
push edi
push eax
mov dword [ebp - 0x1047c], edi
call fcn.00450230
add esp, 0xc
push 1
lea eax, [ebp - 0x1047c]
push eax
push edi
push ebx
call fcn.0041fd96
push eax
call fcn.00421a88
test eax, eax
jne 0x418284
cmp dword [ebp - 0x1047c], edi
jbe 0x418284
mov eax, dword [ebp - 0x10478]
lea esi, [eax + 0x4f]
mov edi, 0x4a3f84
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x28]
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4181ef
sub eax, esi
mov ecx, eax
push 0x10
pop eax
cmp ecx, eax
jae 0x41820f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418206
sub eax, edx
push eax
push edi
push 0x4a3fca
call fcn.00451390
mov eax, dword [ebp - 0x10478]
mov ecx, dword [eax + 0x37]
mov dword [0x4a3fda], ecx
mov ecx, dword [eax + 0x3b]
mov dword [0x4a3fde], ecx
mov ecx, dword [eax + 0x43]
mov dword [0x4a3fe2], ecx
mov ecx, dword [eax + 0x47]
add esp, 0xc
mov dword [0x4a3fe6], ecx
mov eax, dword [eax + 0x4b]
push ebx
mov dword [0x4a3fea], eax
call fcn.00417552
push ebx
call fcn.004163c3
test eax, eax
jne 0x418519
push str.cant_build_cluster_bitmap_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x230
push str.HashFileUtils
call fcn.0044dc85
add esp, 0x10
jmp 0x4182a3
push ebx
push str._s_is_not_a_valid_volume_image
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x220
push str.HashFileUtils
call fcn.0044dc85
add esp, 0x14
or eax, 0xffffffff
jmp 0x418785
lea esi, [ebx + 0x20c]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4182b6
sub eax, ecx
mov ecx, eax
push 0x10
pop eax
cmp ecx, eax
jae 0x4182d6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4182cd
sub eax, edx
push eax
push esi
push 0x4a3fca
call fcn.00451390
mov eax, dword [ebx + 0x220]
mov dword [0x4a3fda], eax
mov eax, dword [ebx + 0x22c]
mov dword [0x4a3fde], eax
mov ecx, dword [ebx + 0x228]
mov dword [0x4a3fe2], ecx
mov ecx, dword [ebx + 0x230]
mov dword [0x4a3fe6], ecx
mov ecx, dword [ebx + 0x234]
mov dword [0x4a3fea], ecx
mov eax, dword [ebx + 0x228]
mul dword [ebx + 0x22c]
add esp, 0xc
push edi
add eax, 0xffff
push 0x10000
adc edx, edi
push edx
push eax
call fcn.00453160
mov edi, eax
mov esi, edx
mov dword [0x4a3f98], edi
mov dword [0x4a3f9c], esi
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x244]
push 0
add eax, 0xffff
push 0x10000
adc ecx, 0
push ecx
push eax
call fcn.00453160
add edi, eax
adc esi, edx
mov dword [ebp - 0x10428], eax
push 0
mov eax, edi
add eax, 7
mov ecx, esi
push 8
adc ecx, 0
push ecx
push eax
mov dword [ebp - 0x10424], edx
mov dword [0x4a3f98], edi
mov dword [0x4a3f9c], esi
call fcn.00453160
mov dword [0x4a3f94], eax
add eax, 0xa
push 1
push eax
call fcn.00450903
xor edx, edx
pop ecx
pop ecx
mov dword [0x4a41ee], eax
cmp eax, edx
je 0x4182a3
mov dword [ebp - 0x10420], edx
mov dword [ebp - 0x10418], edx
cmp esi, edx
jl 0x418480
jg 0x4183e1
cmp edi, edx
jbe 0x418480
xor ecx, ecx
jmp 0x4183ea
mov eax, dword [0x4a41ee]
cmp ecx, dword [ebp - 0x10424]
ja 0x41840b
jb 0x4183fc
cmp edx, dword [ebp - 0x10428]
jae 0x41840b
mov edi, dword [ebp - 0x10418]
mov esi, edi
shr esi, 3
add esi, eax
jmp 0x418447
sub edx, dword [ebp - 0x10428]
sbb ecx, dword [ebp - 0x10424]
shld ecx, edx, 0x10
shl edx, 0x10
add edx, dword [ebx + 0x240]
adc ecx, dword [ebx + 0x244]
push ecx
push edx
push ebx
call fcn.00428956
test eax, eax
je 0x418458
mov edi, dword [ebp - 0x10418]
mov esi, edi
shr esi, 3
add esi, dword [0x4a41ee]
mov ecx, edi
and ecx, 7
mov al, 1
shl al, cl
mov dword [ebp - 0x10420], edi
or byte [esi], al
inc dword [ebp - 0x10418]
mov edx, dword [ebp - 0x10418]
xor ecx, ecx
cmp ecx, dword [0x4a3f9c]
jl 0x4183e5
jg 0x418480
cmp edx, dword [0x4a3f98]
jb 0x4183e5
mov eax, dword [ebp - 0x10420]
inc eax
xor ecx, ecx
push 0
mov dword [0x4a3f98], eax
add eax, 7
mov dword [0x4a3f9c], ecx
push 8
adc ecx, ecx
push ecx
push eax
call fcn.00453160
mov dword [0x4a3f94], eax
add eax, 0x48a
shr eax, 9
inc eax
shl eax, 9
mov dword [0x4a3fa4], eax
add eax, dword [0x4a3fa0]
xor ecx, ecx
mov dword [0x4a3faa], eax
mov dword [0x4a3fae], ecx
mov edx, dword [ebx + 0x240]
mov esi, dword [ebx + 0x244]
xor edi, edi
add edx, 0xffff
adc esi, edi
shrd edx, esi, 0x10
shr esi, 0x10
shld esi, edx, 8
shl edx, 8
add edx, eax
adc esi, ecx
mov dword [0x4a3fb2], edx
mov dword [0x4a3fb6], esi
mov eax, dword [ebx + 0x240]
mov dword [0x4a3fc2], eax
mov eax, dword [ebx + 0x244]
mov dword [0x4a3fc6], eax
jmp 0x41851b
xor edi, edi
call fcn.00416751
push edi
push edi
push edi
push dword [0x482288]
call fcn.0044df99
mov esi, dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
push edi
lea eax, [ebp - 0x1041c]
push eax
push 0x486
push 0x4a3d68
push dword [0x482288]
call esi
test eax, eax
jne 0x418568
push str.cant_write_to_hash_file_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x26e
jmp 0x418275
push edi
lea eax, [ebp - 0x1041c]
push eax
push dword [0x4a3f94]
push dword [0x4a41ee]
push dword [0x482288]
call esi
test eax, eax
jne 0x41859e
push str.cant_write_to_hash_file_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x273
jmp 0x418275
cmp dword [ebp + 0x10], edi
jne 0x418782
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x4cd33c
push esi
call fcn.00451211
lea eax, [ebp - 0x108]
push 0x46c3a0
push eax
call fcn.00450597
add esp, 0x1c
test eax, eax
je 0x418782
push esi
call fcn.0041fe68
mov ecx, dword [0x4a3fbe]
cmp eax, 4
mov eax, dword [0x4a3fba]
push edi
jne 0x4186bc
add eax, dword [0x4a3faa]
adc ecx, dword [0x4a3fae]
push ecx
push eax
push dword [0x482288]
call fcn.00416ab6
test byte [0x4cdde0], 4
je 0x418782
push edi
push dword [0x4a3fae]
push dword [0x4a3faa]
push dword [0x482288]
call fcn.0044df99
push 0xffff
lea eax, [ebp - 0x10413]
push edi
push eax
mov byte [ebp - 0x10414], 0
call fcn.00450230
mov ebx, dword [0x4a3fbe]
mov esi, dword [0x4a3fba]
add esp, 0xc
cmp ebx, edi
jl 0x418744
jle 0x4186af
push edi
lea eax, [ebp - 0x1041c]
push eax
push 0x10000
lea eax, [ebp - 0x10414]
push eax
push dword [0x482288]
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
test eax, eax
jle 0x418726
sub esi, dword [ebp - 0x1041c]
sbb ebx, edi
cmp ebx, edi
jg 0x418675
jl 0x418744
cmp esi, 0x10000
jae 0x418675
jmp 0x418744
add eax, dword [0x4a3faa]
adc ecx, dword [0x4a3fae]
push ecx
push eax
push dword [0x482288]
call fcn.0044df99
push dword [0x482288]
call dword [sym.imp.___total_physical_size__lu_MB_SetEndOfFile]
test eax, eax
jne 0x41861e
mov eax, dword [0x4a3fba]
add eax, dword [0x4a3faa]
mov ecx, dword [0x4a3fbe]
adc ecx, dword [0x4a3fae]
push ecx
push eax
push esi
push str.Cant_set_EOF_mark_in_hash_file__s_at__I64u_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x29c
push str.HashFileUtils
call fcn.0044dc85
add esp, 0x1c
jmp 0x4182a3
push str.cant_write_to_hash_file_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x2b1
push str.HashFileUtils
call fcn.0044dc85
add esp, 0x10
push edi
lea eax, [ebp - 0x1041c]
push eax
push esi
lea eax, [ebp - 0x10414]
push eax
push dword [0x482288]
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
test eax, eax
jg 0x418782
push str.cant_write_to_hash_file_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x2b9
push str.HashFileUtils
call fcn.0044dc85
add esp, 0x10
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0xc