Function at 0x437020
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x150
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esp + 0x148], eax
mov ebx, dword [ecx]
mov dword [ecx], 0
test ebx, ebx
je 0x4370be
cmp byte [ebx + 0x18], 0
jne 0x4370d4
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 [ebx + 4]
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
je 0x43713b
mov edi, dword [ebx + 0x1c]
test edi, edi
jne 0x437190
lea ecx, [ebx + 0xc]
call fcn.004c5e70
mov dword [ebx], 0x583c8c
cmp byte [ebx + 8], 0
jne 0x4371db
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x4370b5
push eax
call fcn.0042b930
add esp, 4
mov dword [ebx + 4], 0xffffffff
push ebx
call fcn.004cf0d6
add esp, 4
mov ecx, dword [esp + 0x148]
xor ecx, ebp
call fcn.004d25a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 4]
call fcn.00431da0
add esp, 0x10
or edx, eax
je 0x4371de
push 2
call fcn.004cb810
add esp, 4
test al, al
je 0x437053
lea esi, [esp + 0x90]
mov ecx, esi
push 2
push 0x203
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00408a90
lea eax, [esp + 0x98]
push 0x19
push str.failed_to_rewind_to_write
push eax
call fcn.004b7fc0
add esp, 0xc
mov ecx, esi
call fcn.00408d50
jmp 0x437053
push 2
call fcn.004cb810
add esp, 4
test al, al
je 0x43707a
call fcn.00501800
lea esi, [esp + 0x90]
mov ecx, esi
push eax
push 2
push 0x13e
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00501810
lea eax, [esp + 0x98]
push 0xc
push 0x58cda6
push eax
call fcn.004b7fc0
add esp, 0xc
mov ecx, esi
call fcn.005018c0
jmp 0x43707a
mov esi, dword [ebx + 0x20]
cmp esi, edi
je 0x4375ff
lea eax, [esi - 0x58]
mov dword [esp + 4], eax
cmp byte [esi - 0x31], 0
jns 0x4371b3
push dword [esi - 0x3c]
call fcn.004cf0d6
add esp, 4
add esi, 0xffffffb8
mov ecx, esi
call fcn.004c5e70
mov eax, dword [esp + 4]
mov esi, eax
cmp edi, eax
jne 0x43719b
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x20], edi
push eax
call fcn.004cf0d6
add esp, 4
jmp 0x437085
int3
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x437606
mov edi, dword [ebx + 0x20]
sub edi, dword [ebx + 0x1c]
mov eax, edi
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 [ebx + 4]
call fcn.00429cc0
add esp, 0xc
test al, al
je 0x43765b
test edi, edi
je 0x437053
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
cmp esi, 0x4924925
jae 0x437859
imul esi, esi, 0x38
push esi
call fcn.004cf0a6
add esp, 4
add esi, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0x3c], ecx
cmp eax, ecx
je 0x43777f
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
lea edi, [eax + 0x10]
mov ecx, edi
lea esi, [esp + 0x90]
push esi
call fcn.0040ed40
mov ecx, esi
push dword [esp + 0x18]
call fcn.00519a70
mov byte [esp + 0xc], al
mov ecx, esi
call fcn.004c5e70
cmp byte [esp + 0xc], 0
jne 0x43769a
mov eax, dword [esp + 4]
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x90], xmm0
mov ecx, edi
lea esi, [esp + 0x70]
push esi
call fcn.004c95c0
movzx eax, byte [esp + 0x7b]
mov ecx, esi
test al, al
jns 0x4372fb
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
push eax
push ecx
lea eax, [esp + 0x84]
push eax
call fcn.00412900
add esp, 0xc
movzx eax, byte [esp + 0x6b]
mov dword [esp + 0xc], eax
test al, al
jns 0x437322
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x87]
lea edx, [esp + 0x7c]
test al, al
jns 0x43733d
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
lea esi, [esp + 0x60]
mov ecx, esi
push eax
push edx
call fcn.004b8680
mov ecx, esi
push 0
call fcn.004b8380
cmp byte [esp + 0x87], 0
jns 0x437369
push dword [esp + 0x7c]
call fcn.004cf0d6
add esp, 4
lea ecx, [esp + 0x70]
call fcn.004c5e70
movzx eax, byte [esp + 0x6b]
mov dword [esp + 0x10], eax
test al, al
jns 0x437387
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
movzx eax, byte [eax + 0x27]
test al, al
jns 0x43739f
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x1c]
jmp 0x4373a6
mov ecx, dword [esp + 4]
lea edx, [ecx + 0x1c]
lea esi, [esp + 0x60]
mov ecx, esi
push eax
push edx
call fcn.004b8680
mov ecx, esi
xor esi, esi
push esi
call fcn.004b8380
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x34], ecx
mov cl, byte [eax + 0x44]
add cl, cl
or cl, byte [eax + 0x30]
mov byte [esp + 0xb], cl
mov cl, byte [eax + 0x45]
mov byte [esp + 0xa], cl
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x88], esi
mov word [esp + 0x8c], 0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ecx, edx
cmp edx, eax
jae 0x4374a9
movaps xmm0, xmmword [esp + 0x90]
movups xmmword [ecx], xmm0
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x2c], eax
mov al, byte [esp + 0xb]
mov byte [ecx + 0x30], al
mov al, byte [esp + 0xa]
mov byte [ecx + 0x31], al
mov eax, dword [esp + 0x88]
mov dword [ecx + 0x32], eax
movzx eax, word [esp + 0x8c]
mov word [ecx + 0x36], ax
add ecx, 0x38
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 4]
add eax, 0x58
mov dword [esp + 4], eax
cmp dword [esp + 0x3c], eax
jne 0x437296
jmp 0x43775c
mov edx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
sub ecx, edx
mov dword [esp + 0x20], ecx
sar ecx, 3
imul esi, ecx, 0xb6db6db7
lea ecx, [esi + 1]
cmp ecx, 0x4924925
jae 0x437850
sub eax, dword [esp + 0x14]
sar eax, 3
imul eax, eax, 0xb6db6db7
lea edx, [eax + eax]
cmp edx, ecx
cmovb edx, ecx
cmp eax, 0x2492492
mov eax, 0x4924924
cmovae edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
je 0x4375f8
cmp dword [esp + 0x1c], 0x4924925
jae 0x437859
imul eax, dword [esp + 0x1c], 0x38
push eax
call fcn.004cf0a6
add esp, 4
mov edi, eax
imul esi, esi, 0x38
movaps xmm0, xmmword [esp + 0x90]
movups xmmword [edi + esi], xmm0
mov eax, dword [esp + 0xc]
mov dword [edi + esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [edi + esi + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + esi + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [edi + esi + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [edi + esi + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [edi + esi + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [edi + esi + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [edi + esi + 0x2c], eax
mov al, byte [esp + 0xb]
mov byte [edi + esi + 0x30], al
mov al, byte [esp + 0xa]
mov byte [edi + esi + 0x31], al
mov eax, dword [esp + 0x88]
mov dword [edi + esi + 0x32], eax
movzx eax, word [esp + 0x8c]
mov word [edi + esi + 0x36], ax
lea ecx, [edi + esi]
imul eax, dword [esp + 0x1c], 0x38
add eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0xc], ecx
test eax, eax
jle 0x4375c2
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.004d4f00
add esp, 0xc
lea eax, [edi + esi]
add eax, 0x38
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x14], 0
je 0x43748f
push dword [esp + 0x14]
call fcn.004cf0d6
add esp, 4
jmp 0x43748f
xor edi, edi
jmp 0x43751b
mov eax, edi
jmp 0x4371ca
push 2
call fcn.004cb810
add esp, 4
test al, al
je 0x437053
call fcn.00501800
lea esi, [esp + 0x90]
mov ecx, esi
push eax
push 2
push 0x20a
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00501810
lea eax, [esp + 0x98]
push 0x12
push str.failed_to_truncate
push eax
call fcn.004b7fc0
add esp, 0xc
mov ecx, esi
call fcn.005018c0
jmp 0x437053
push 2
call fcn.004cb810
add esp, 4
test al, al
je 0x437053
lea esi, [esp + 0x90]
mov ecx, esi
push 2
push 0x216
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00408a90
lea eax, [esp + 0x98]
push 0x16
push str.failed_to_write_header
jmp 0x437126
push 2
call fcn.004cb810
add esp, 4
test al, al
je 0x4377e7
lea ecx, [esp + 0x90]
push 2
push 0x224
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00408a90
lea eax, [esp + 0x98]
mov ecx, dword [esp + 4]
cmp byte [ecx + 0x1b], 0
jns 0x4376dc
mov ecx, dword [esp + 4]
mov edi, dword [ecx + 0x10]
push edi
push eax
call fcn.0051b0d0
add esp, 8
push 0x18
push str._expected_to_start_with
push eax
call fcn.004b7fc0
add esp, 0xc
mov esi, eax
movzx eax, byte [ebx + 0x17]
test al, al
jns 0x43770a
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x10]
lea edi, [esp + 0x7c]
push eax
push dword [esp + 0x1c]
push edi
call fcn.00412900
add esp, 0xc
movzx eax, byte [edi + 0xb]
test al, al
jns 0x43772f
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
push eax
push edi
push esi
call fcn.004b7fc0
add esp, 0xc
cmp byte [esp + 0x87], 0
jns 0x437750
push dword [esp + 0x7c]
call fcn.004cf0d6
add esp, 4
lea ecx, [esp + 0x90]
jmp 0x4377e2
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
je 0x43777f
sub ecx, eax
push ecx
push eax
push dword [ebx + 4]
call fcn.00429cc0
add esp, 0xc
test al, al
je 0x437818
lea ecx, [esp + 0x60]
movzx eax, byte [ecx + 0xb]
test al, al
cmovs eax, dword [ecx + 4]
cmovs ecx, dword [ecx]
push eax
push ecx
push dword [ebx + 4]
call fcn.00429cc0
add esp, 0xc
test al, al
jne 0x4377e7
push 2
call fcn.004cb810
add esp, 4
test al, al
je 0x4377e7
lea esi, [esp + 0x90]
mov ecx, esi
push 2
push 0x234
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00408a90
lea eax, [esp + 0x98]
push 0x1c
push str.failed_to_write_string_table
push eax
call fcn.004b7fc0
add esp, 0xc
mov ecx, esi
call fcn.00408d50
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4377fc
mov dword [esp + 0x58], eax
push eax
call fcn.004cf0d6
add esp, 4
cmp byte [esp + 0x6b], 0
jns 0x437053
push dword [esp + 0x60]
call fcn.004cf0d6
add esp, 4
jmp 0x437053
push 2
call fcn.004cb810
add esp, 4
test al, al
je 0x4377e7
lea esi, [esp + 0x90]
mov ecx, esi
push 2
push 0x22f
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00408a90
lea eax, [esp + 0x98]
push 0x17
push str.failed_to_write_records
jmp 0x4377d7
lea ecx, [esp + 0x54]
call fcn.004ff350
call fcn.004d16b0
int3