Function at 0x407bd0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x140
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x138], eax
mov edi, dword [ecx]
mov dword [ecx], 0
test edi, edi
je 0x407c89
cmp byte [edi + 0x24], 0
jne 0x407ceb
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [ecx + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [ecx], xmm0
xor edx, edx
dec edx
push ecx
push edx
push edx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
je 0x407fea
mov esi, dword [edi + 0x28]
test esi, esi
jne 0x407c9f
cmp byte [edi + 0x23], 0
jns 0x407c46
push dword [edi + 0x18]
call fcn.0057dc2b
add esp, 4
cmp byte [edi + 0x17], 0
jns 0x407c57
push dword [edi + 0xc]
call fcn.0057dc2b
add esp, 4
mov dword [edi], 0x629058
cmp byte [edi + 8], 0
jne 0x407fe4
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x407c80
push eax
call fcn.00408380
add esp, 4
test al, al
je 0x407fe7
push edi
call fcn.0057dc2b
add esp, 4
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.005810d5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [edi + 0x2c]
mov eax, esi
cmp ebx, esi
je 0x407cda
add ebx, 0xffffffa8
test ebx, ebx
je 0x40819e
cmp byte [ebx + 0x27], 0
js 0x408044
cmp byte [ebx + 0x1b], 0
jns 0x407cce
push dword [ebx + 0x10]
call fcn.0057dc2b
add esp, 4
lea eax, [ebx - 0x58]
cmp ebx, esi
mov ebx, eax
jne 0x407cab
mov eax, dword [edi + 0x28]
mov dword [edi + 0x2c], esi
push eax
call fcn.0057dc2b
add esp, 4
jmp 0x407c35
xor eax, eax
push eax
push eax
push eax
push dword [edi + 4]
call fcn.004090a0
add esp, 0x10
or edx, eax
jne 0x40829a
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x408325
mov ecx, dword [edi + 0x28]
mov ebx, dword [edi + 0x2c]
mov eax, ebx
mov dword [esp], ecx
sub eax, ecx
sar eax, 3
imul esi, eax, 0xba2e8ba3
lea eax, [esp + 0x40]
mov dword [eax + 0xc], 0
mov dword [eax], 0x43504144
mov dword [eax + 4], 1
mov dword [eax + 8], esi
push 0x10
push eax
push dword [edi + 4]
call fcn.0054b840
add esp, 0xc
test al, al
je 0x4082d6
cmp ebx, dword [esp]
je 0x407c07
xorps xmm0, xmm0
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
cmp esi, 0x4924925
jae 0x40803f
imul ebx, esi, 0x38
push ebx
call fcn.0057dc30
add esp, 4
mov esi, eax
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov dword [esp], eax
mov dword [esp + 0x3c], ecx
cmp eax, ecx
je 0x407fe0
mov eax, esi
add eax, ebx
mov dword [esp + 8], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], eax
mov ebx, esi
mov dword [esp + 0xc], ebx
mov eax, dword [esp]
lea ecx, [eax + 0x10]
mov dword [esp + 0x10], ecx
lea ebx, [esp + 0x90]
push ebx
call fcn.00552270
mov ecx, ebx
push dword [esp + 0x1c]
call fcn.00409d90
mov ebx, eax
cmp byte [esp + 0x9b], 0
jns 0x407df6
push dword [esp + 0x90]
call fcn.0057dc2b
add esp, 4
test bl, bl
jne 0x4081ad
mov eax, dword [esp]
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x90], xmm0
mov ecx, dword [esp + 0x10]
lea ebx, [esp + 0x70]
push ebx
call fcn.00545430
movsx eax, byte [esp + 0x7b]
mov ecx, ebx
test eax, eax
jns 0x407e2d
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
test eax, eax
js 0x408189
je 0x407e3f
test ecx, ecx
je 0x408197
push eax
push ecx
lea ebx, [esp + 0x84]
push ebx
call fcn.00557410
add esp, 0xc
lea ecx, [esp + 0x60]
mov edx, ebx
call fcn.00409c70
mov dword [esp + 0x10], eax
cmp byte [esp + 0x87], 0
jns 0x407e76
push dword [esp + 0x7c]
call fcn.0057dc2b
add esp, 4
cmp byte [esp + 0x7b], 0
jns 0x407e89
push dword [esp + 0x70]
call fcn.0057dc2b
add esp, 4
mov ebx, dword [esp]
lea edx, [ebx + 0x1c]
lea ecx, [esp + 0x60]
call fcn.00409c70
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x2c]
mov cl, byte [ebx + 0x44]
add cl, cl
or cl, byte [ebx + 0x30]
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x2c], edx
mov ch, byte [ebx + 0x45]
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 0x50]
mov dword [esp + 0x28], edx
mov dword [esp + 0x88], 0
mov word [esp + 0x8c], 0
cmp esi, dword [esp + 8]
jae 0x40806a
test esi, esi
mov ebx, dword [esp + 0xc]
je 0x408190
mov edx, eax
movaps xmm0, xmmword [esp + 0x90]
movups xmmword [esi], xmm0
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], cl
mov byte [esi + 0x31], ch
mov dword [esi + 0x32], 0
mov word [esi + 0x36], 0
add esi, 0x38
mov eax, dword [esp]
add eax, 0x58
mov dword [esp], eax
cmp eax, dword [esp + 0x3c]
jne 0x407db5
cmp ebx, esi
je 0x408059
mov eax, esi
sub eax, ebx
push eax
push ebx
push dword [edi + 4]
call fcn.0054b840
add esp, 0xc
test al, al
je 0x40820e
lea eax, [esp + 0x60]
movsx ecx, byte [eax + 0xb]
test ecx, ecx
cmovs ecx, dword [eax + 4]
cmovs eax, dword [eax]
push ecx
push eax
push dword [edi + 4]
call fcn.0054b840
add esp, 0xc
test al, al
je 0x408248
test ebx, ebx
je 0x407fc4
cmp esi, ebx
je 0x407fbb
add esi, 0xffffffc8
jne 0x407fad
jmp 0x40819e
push ebx
call fcn.0057dc2b
add esp, 4
cmp byte [esp + 0x6b], 0
jns 0x407c07
push dword [esp + 0x60]
call fcn.0057dc2b
add esp, 4
jmp 0x407c07
mov ebx, esi
jmp 0x407f83
int3
int3
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x407c2e
call fcn.00417770
lea esi, [esp + 0x90]
mov ecx, esi
push eax
push 2
push 0x145
push str.crash_report_database_win.cc
call fcn.00409720
lea eax, [esp + 0x98]
push 0xc
push 0x63d974
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.00409610
jmp 0x407c2e
call fcn.005b76e0
push dword [ebx + 0x1c]
call fcn.0057dc2b
add esp, 4
jmp 0x407cbd
call fcn.005b6d80
mov esi, ebx
jmp 0x407f83
mov dword [esp + 8], 0
jmp 0x4080da
mov dword [esp + 0x38], eax
mov byte [esp + 7], ch
mov byte [esp + 6], cl
sub esi, dword [esp + 0xc]
mov eax, esi
sar eax, 3
imul eax, eax, 0xb6db6db7
mov ebx, eax
inc eax
cmp eax, 0x4924925
jae 0x40803f
mov ecx, dword [esp + 8]
sub ecx, dword [esp + 0xc]
sar ecx, 3
imul ecx, ecx, 0xb6db6db7
lea edx, [ecx + ecx]
cmp edx, eax
cmova eax, edx
cmp ecx, 0x2492492
mov ecx, 0x4924924
cmovb ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x408060
cmp dword [esp + 0x14], 0x4924925
jae 0x408054
imul eax, dword [esp + 0x14], 0x38
push eax
call fcn.0057dc30
add esp, 4
mov dword [esp + 8], eax
imul eax, ebx, 0x38
add eax, dword [esp + 8]
mov dword [esp + 0x18], eax
je 0x408190
movaps xmm0, xmmword [esp + 0x90]
mov ebx, dword [esp + 0x18]
movups xmmword [ebx], xmm0
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x2c], eax
mov al, byte [esp + 6]
mov byte [ebx + 0x30], al
mov al, byte [esp + 7]
mov byte [ebx + 0x31], al
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x32], eax
movzx eax, word [esp + 0x8c]
mov word [ebx + 0x36], ax
sub ebx, esi
push esi
mov esi, dword [esp + 0x10]
push esi
push ebx
call fcn.005822f0
add esp, 0xc
test esi, esi
je 0x408177
push dword [esp + 0xc]
call fcn.0057dc2b
add esp, 4
imul eax, dword [esp + 0x14], 0x38
add dword [esp + 8], eax
mov esi, dword [esp + 0x18]
jmp 0x407f4c
push str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
jmp 0x4081a3
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
jmp 0x4081a3
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x4081a3
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
push 0x62a183
call fcn.005aacb0
mov ebx, dword [esp + 0xc]
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x407fa9
lea ecx, [esp + 0x90]
push 2
push 0x22e
push str.crash_report_database_win.cc
call fcn.0040ca50
lea eax, [esp + 0x98]
push dword [esp + 0x10]
push eax
call fcn.00453e60
add esp, 8
push 0x18
push str._expected_to_start_with
push eax
call fcn.00545ec0
add esp, 0xc
push dword [esp + 0x1c]
push eax
call fcn.00453e60
add esp, 8
jmp 0x408289
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x407fa9
lea ecx, [esp + 0x90]
push 2
push 0x238
push str.crash_report_database_win.cc
call fcn.0040ca50
lea eax, [esp + 0x98]
push 0x17
push str.failed_to_write_records
jmp 0x408280
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x407fa9
lea ecx, [esp + 0x90]
push 2
push 0x23d
push str.crash_report_database_win.cc
call fcn.0040ca50
lea eax, [esp + 0x98]
push 0x1c
push str.failed_to_write_string_table
push eax
call fcn.00545ec0
add esp, 0xc
lea ecx, [esp + 0x90]
call fcn.0040b060
jmp 0x407fa9
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x407c07
lea esi, [esp + 0x90]
mov ecx, esi
push 2
push 0x20d
push str.crash_report_database_win.cc
call fcn.0040ca50
lea eax, [esp + 0x98]
push 0x19
push str.failed_to_rewind_to_write
jmp 0x408310
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x407c07
lea esi, [esp + 0x90]
mov ecx, esi
push 2
push 0x220
push str.crash_report_database_win.cc
call fcn.0040ca50
lea eax, [esp + 0x98]
push 0x16
push str.failed_to_write_header
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.0040b060
jmp 0x407c07
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x407c07
call fcn.00417770
lea esi, [esp + 0x90]
mov ecx, esi
push eax
push 2
push 0x214
push str.crash_report_database_win.cc
call fcn.00409720
lea eax, [esp + 0x98]
push 0x12
push str.failed_to_truncate
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.00409610
jmp 0x407c07