Function at 0x451d7e
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x519bfb
call fcn.004d8abf
mov edi, edx
mov dword [ebp - 0x10], edi
mov ebx, ecx
mov dword [ebp - 0x64], ebx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004523f0
mov al, byte [ebp + 8]
mov esi, dword [edi + 0x1ac]
mov byte [ebp - 0x60], al
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
cmp esi, dword [edi + 0x1b0]
je 0x451f6e
cmp byte [esi + 0x55], 0
mov bl, al
je 0x451f59
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x451f56
lea ecx, [ebp - 0x34]
call fcn.00452433
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x18]
sub ecx, 0x10
call fcn.004070e7
mov edi, eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x34]
call fcn.00405d6e
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00407189
mov ecx, dword [esi + 0x1c]
sub ecx, 0x10
call fcn.004070e7
mov edi, eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x30]
call fcn.00405d6e
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00407189
mov al, byte [esi + 0x2c]
mov byte [ebp - 0x2c], al
mov al, byte [esi + 0x54]
mov byte [ebp - 0x2b], al
mov al, byte [esi + 0x56]
mov byte [ebp - 0x2a], al
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc4]
test eax, eax
jne 0x451e83
lea eax, [esi + 0x64]
push eax
lea ecx, [ebp - 0x20]
call fcn.004ae830
lea eax, [esi + 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.004ae830
lea eax, [esi + 0x78]
lea ecx, [ebp - 0x24]
jmp 0x451f0e
cmp eax, 5
jne 0x451ef1
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp - 0x28]
call fcn.004ae830
lea eax, [esi + 0x88]
push eax
lea ecx, [ebp - 0x24]
call fcn.004ae830
lea eax, [esi + 0x8c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405d6e
cmp byte [ebp + 8], 0
je 0x451f14
cmp dword [ebp - 0x34], 0
jne 0x451f14
mov ecx, dword [esi + 0x18]
sub ecx, 0x10
call fcn.004070e7
mov edi, eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x34]
call fcn.00405d6e
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00407189
jmp 0x451f14
cmp eax, 7
jne 0x451f14
lea eax, [esi + 0x94]
push eax
lea ecx, [ebp - 0x24]
call fcn.004ae830
lea eax, [esi + 0x90]
lea ecx, [ebp - 0x20]
push eax
call fcn.004ae830
xor ecx, ecx
movzx eax, bl
cmp byte [esi + 0x54], cl
lea edi, [ebp - 0x7c]
push 6
cmovne ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
pop ecx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x7c]
call fcn.00452433
push eax
lea ecx, [ebp - 0x34]
call fcn.00452612
lea ecx, [ebp - 0x7c]
mov bl, al
call fcn.00452480
test bl, bl
je 0x451f9d
lea ecx, [ebp - 0x34]
call fcn.00452480
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add esi, 0xa8
cmp esi, dword [edi + 0x1b0]
jne 0x451dc1
mov ebx, dword [ebp - 0x64]
lea ecx, [ebp - 0x10]
call fcn.0040687a
mov byte [ebp - 4], 6
cmp byte [ebp + 8], 0
je 0x452065
mov eax, dword [0x57d3ec]
cmp byte [eax + 1], 0
mov ecx, dword [ebp - 0x14]
je 0x451fcb
test cl, cl
jne 0x451fcb
mov esi, str.Canceled
jmp 0x451fda
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x48]
call fcn.004b68ca
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [eax]
add ecx, 0x14
call fcn.004524b1
lea ecx, [ebp - 0x34]
call fcn.00452480
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x451f59
cmp dword [ebp + 0xc], 0
jl 0x452009
test cl, cl
jne 0x451fed
mov esi, str.Partial
push esi
call fcn.004ddaa2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00406efb
jmp 0x452059
mov esi, 0x53d410
push esi
call fcn.004ddaa2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00406efb
mov byte [ebp - 0x5f], 1
jmp 0x452059
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push str.Failed
call fcn.00406fea
sub esp, 0xc
mov byte [ebp - 4], 7
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040121b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0044f0b0
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00405d6e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea eax, [edi + 0x184]
push eax
lea ecx, [ebp - 0x58]
jmp 0x45208b
lea eax, [edi + 0x44]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405d6e
lea ecx, [edi + 0x4c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x452087
lea ecx, [edi + 0x48]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x452090
push ecx
lea ecx, [ebp - 0x10]
call fcn.00405d6e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00405d6e
mov ecx, dword [ebp - 0x10]
fld qword [edi + 0x38]
fstp qword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [0x57d3ec]
add eax, 0x98
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x3c], 1
mov byte [ebp - 4], 9
mov esi, dword [0x57d3ec]
cmp dword [esi + 0xb0], 0
jne 0x45211c
push 0x20
call fcn.004d8429
pop ecx
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004523f0
mov byte [ebp - 4], 9
mov ecx, dword [esi + 0xb0]
mov dword [ebp - 0x14], ecx
mov dword [esi + 0xb0], eax
test ecx, ecx
je 0x452116
call fcn.0045245e
push 0x20
push dword [ebp - 0x14]
call fcn.004d840d
pop ecx
pop ecx
mov esi, dword [0x57d3ec]
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb0]
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0xc]
ja 0x45232c
jb 0x452145
mov eax, dword [esi + 0xb8]
cmp eax, dword [edi + 8]
ja 0x45232c
mov al, byte [ebp - 0x60]
cmp al, byte [ecx]
jne 0x45219e
mov al, byte [ebp - 0x5f]
cmp al, byte [ecx + 1]
jne 0x45219e
lea edx, [ecx + 4]
lea ecx, [ebp - 0x5c]
call fcn.00405d14
test al, al
je 0x45219e
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x58]
add edx, 8
call fcn.00405d14
test al, al
je 0x45219e
mov ecx, dword [ebp - 0x10]
fld qword [ebp - 0x50]
fld qword [ecx + 0x10]
fxch st(1)
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jp 0x45219e
lea edx, [ecx + 0x18]
lea ecx, [ebp - 0x48]
call fcn.004b0ec2
test al, al
je 0x45219e
xor eax, eax
inc eax
jmp 0x4521a0
xor al, al
test al, al
jne 0x45232c
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0045250b
lea ecx, [ebp + 8]
call fcn.0040687a
push ecx
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.004b2d29
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x70], 0
jge 0x45224e
cmp dword [ebp - 0x6c], 0
mov eax, 0x6db
cmovne eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x68]
lea ecx, [edi - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x28]
mov dword [esi], eax
call fcn.00406620
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0xa8]
call fcn.0045245e
jmp 0x45233b
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00407189
push 0
push 0xa
lea ecx, [ebp + 8]
call fcn.004aee68
cmp eax, 0xffffffff
je 0x45229f
push 0x6dd
push 0x80004005
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x28]
call fcn.00406620
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
jmp 0x45222e
push 0x54478c
lea edx, [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.00409442
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x10
call fcn.00405d6e
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp + 8]
and dword [ebp - 0x18], 0
lea ecx, [eax - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx + 4]
add ecx, ecx
cmp byte [0x577bdc], 0
mov dword [ebp - 0x38], ecx
je 0x45235f
push eax
push str._ws_n
call fcn.004d5726
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
call fcn.00407189
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x60]
push eax
call fcn.004525a6
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [esi + 0xbc], ecx
lea ecx, [ebp - 0xa8]
mov dword [esi + 0xb8], eax
call fcn.0045245e
and dword [ebx], 0
lea ecx, [ebx + 8]
and dword [ebx + 4], 0
call fcn.0040687a
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x60]
call fcn.0045245e
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, ebx
call fcn.004d8a8d
ret
push 0
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push dword [0x577bd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4523ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea ecx, [ebx + 8]
or edx, 0x80070000
mov dword [ebx + 4], 0x6eb
test eax, eax
cmovle edx, eax
mov eax, 0x80004005
test edx, edx
cmovs eax, edx
mov dword [ebx], eax
call fcn.0040687a
mov ecx, dword [ebp - 0x14]
jmp 0x452239
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x18], eax
je 0x4522f7
push 0x6ed
push 0x80004005
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x28]
call fcn.00406620
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x4523a6