Function at 0x42f1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440d78
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4620f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1000
mov dword [ebp - 0x18], 0
call fcn.004060ba
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
push 0x1000
push esi
mov ecx, ebx
call dword [eax]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx + 8]
test eax, eax
je 0x42f218
mov eax, dword [eax + 4]
jmp 0x42f21a
xor eax, eax
test eax, eax
jne 0x42f379
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push esi
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f301
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x42f273
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x42f25b
xor al, al
jmp 0x42f275
mov eax, dword [ebp - 0x14]
add dword [edi + 8], eax
mov ecx, dword [edi + 4]
adc dword [edi + 0xc], 0
push dword [edi + 0xc]
mov eax, dword [ecx]
push dword [edi + 8]
call dword [eax + 4]
mov al, 1
test al, al
je 0x42f2ab
cmp dword [ebp - 0x10], 0x1000
je 0x42f1f5
mov edi, dword [ebp + 8]
mov edx, dword [0x465148]
mov dword [edi], edx
test edx, edx
je 0x42f29e
mov ecx, 1
lock xadd dword [edx], ecx
push esi
call fcn.004060b5
mov eax, edi
jmp 0x42f3e0
push str.Canceled.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x24]
push 0x4000f
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0xd18ae1a8
mov dword [ecx + 4], 0xa8a1022b
mov dword [ecx + 8], 0x452d28
mov dword [ecx + 0xc], str._anonymous_namespace::FillFileFrom
mov dword [ecx + 0x10], 0x226
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 8]
call fcn.00412b70
push esi
call fcn.004060b5
mov eax, dword [ebp + 8]
jmp 0x42f3e0
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0x452ba8
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0xd18ae1a6
mov dword [ecx + 4], 0xa8a1022b
mov dword [ecx + 8], 0x452bd8
mov dword [ecx + 0xc], 0x452bb4
mov dword [ecx + 0x10], 0x224
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00416a40
add esp, 0x28
push 1
push eax
mov eax, dword [ebp - 0x3c]
sub esp, 0x18
mov edx, esp
mov byte [ebp - 4], 2
mov dword [edx], 0xd18ae1a6
mov dword [edx + 4], 0xa8a1022b
mov dword [edx + 8], 0x452ca8
mov dword [edx + 0xc], 0x452c34
mov dword [edx + 0x10], 0x224
mov dword [edx + 0x14], eax
jmp 0x42f3c1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403710
push 1
push eax
mov eax, dword [ebp - 0x3c]
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 1
mov dword [ecx], 0xd18ae1a3
mov dword [ecx + 4], 0xa8a1022b
mov dword [ecx + 8], 0x452b58
mov dword [ecx + 0xc], 0x452ae4
mov dword [ecx + 0x10], 0x221
mov dword [ecx + 0x14], eax
mov ebx, dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.0042f510
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00402f20
push esi
call fcn.004060b5
mov eax, ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret