Function at 0x1f020410
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1f05615b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x38]
push edi
push ebp
mov dword [esp + 0x20], 0
mov dword [ebx], str.Dump_successfully_completed
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, eax
test esi, esi
je 0x1f020476
cmp dword [esp + 0x3c], 0
jne 0x1f020476
pop edi
pop esi
pop ebp
mov dword [ebx], str.Bad_Read_Pointer
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
call fcn.1f013e80
push 0
push 0x80
push 2
push 0
push 3
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
push 0xc0000000
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1f0204c2
mov ecx, dword [esp + 0x44]
mov dword [ecx], str.Error_opening_file
mov dword [esp + 0x10], 0
jmp 0x1f02065d
test esi, esi
je 0x1f020634
push 0x148
push ebp
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1f0204f9
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [ecx], str.Dumping_Error
jmp 0x1f020656
push 0x1290
call fcn.1f03e832
add esp, 4
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x2c], esi
cmp eax, esi
je 0x1f02051d
mov ecx, eax
call fcn.1f007230
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
mov ecx, esi
call fcn.1f006be0
mov ecx, esi
call fcn.1f030370
cmp edi, eax
jb 0x1f02054d
mov ecx, esi
call fcn.1f030370
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea edx, [esp + 0x18]
test eax, eax
je 0x1f0205eb
mov eax, dword [esi + 0x1128]
xor edi, edi
push edi
push edx
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1f020581
mov dword [esp + 0x10], edi
jmp 0x1f020603
xor ecx, ecx
mov dword [esp + 0x1c], edi
cmp cx, word [esi + 0x10da]
jae 0x1f02060b
mov edx, dword [esi + 0x11e0]
mov eax, dword [edx + edi + 0xc]
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 0x11e0]
push 0
lea eax, [ecx + edi]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [eax + 0xc]
push ecx
add edx, ebp
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1f0205fb
mov eax, dword [esp + 0x1c]
movzx ecx, word [esi + 0x10da]
inc eax
add edi, 0x28
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x1f020590
jmp 0x1f02060b
push 0
push edx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1f02060b
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 1
test esi, esi
je 0x1f02061a
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
mov ecx, esi
call edx
cmp dword [esp + 0x10], 0
jne 0x1f020656
cmp dword [esp + 0x14], 0
jne 0x1f02064c
mov ecx, dword [esp + 0x44]
mov dword [ecx], str.Dumping_Error
jmp 0x1f020656
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1f020656
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [eax], str.Error_writing_dump
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1f014000
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret