Function at 0x499624
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x140
mov eax, dword [0x584fa8]
xor eax, ebp
mov dword [esp + 0x138], eax
xor eax, eax
mov esi, dword [ecx]
mov dword [ecx], eax
test esi, esi
je 0x499d77
cmp byte [esi + 0x18], 0
je 0x499ce8
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
call fcn.004b7e75
add esp, 0x10
or edx, eax
je 0x4996bc
push 2
call fcn.00427300
add esp, 4
test al, al
je 0x499ce8
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x1e0
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00427390
lea eax, [esp + 0x84]
push 0x19
push str.failed_to_rewind_to_write
push eax
call fcn.00401b93
add esp, 0xc
mov ecx, edi
call fcn.004268f0
jmp 0x499ce8
push dword [esi + 4]
call dword [0x57e844]
test eax, eax
je 0x499a5f
mov edi, dword [esi + 0x20]
mov ecx, esi
sub edi, dword [esi + 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
mov dword [esp + 0x10], ecx
push dword [ecx + 4]
call fcn.004b8201
add esp, 0xc
test al, al
je 0x499ab4
test edi, edi
je 0x499ce4
xor eax, eax
cmp esi, 0x4924925
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], eax
jae 0x499d96
imul esi, esi, 0x38
push esi
call fcn.0050317c
add esp, 4
mov ecx, dword [esp + 8]
add esi, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov edx, dword [ecx + 0x20]
mov esi, dword [ecx + 0x1c]
cmp esi, edx
mov dword [esp + 0x3c], edx
je 0x499b03
lea eax, [ecx + 0xc]
mov dword [esp + 0x14], eax
lea edi, [esi + 0x10]
lea ebx, [esp + 0x80]
mov ecx, edi
push ebx
call fcn.00424d10
mov ecx, ebx
push dword [esp + 0x14]
call fcn.00424660
lea ecx, [esp + 0x80]
mov ebx, eax
call fcn.004243d0
test bl, bl
jne 0x499b77
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
lea eax, [esp + 0x74]
mov ecx, edi
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x88], xmm1
push eax
call fcn.00424e60
movzx eax, byte [esp + 0x74]
mov bl, 1
test al, bl
je 0x4997e9
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
jmp 0x4997ef
shr eax, 1
lea ecx, [esp + 0x76]
push eax
push ecx
lea edi, [esp + 0x134]
push edi
call fcn.0042ff30
add esp, 0xc
lea ecx, [esp + 0x68]
mov edx, edi
call fcn.0049ad5e
test byte [esp + 0x12c], bl
mov dword [esp + 0x10], eax
je 0x499828
push dword [esp + 0x134]
call fcn.005031ac
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004243d0
lea edx, [esi + 0x1c]
lea ecx, [esp + 0x68]
call fcn.0049ad5e
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x28]
mov bl, byte [esi + 0x44]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x40]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x2c]
add bl, bl
or bl, byte [esi + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x12f], eax
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x64]
cmp edi, eax
jae 0x4998f5
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [esp + 0x88]
mov eax, dword [esp + 0x10]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], eax
mov byte [edi + 0x30], bl
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x12f]
mov dword [edi + 0x31], eax
mov dword [edi + 0x34], ecx
add edi, 0x38
mov dword [esp + 0x60], edi
jmp 0x499a45
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x30], ecx
mov byte [esp + 7], bl
sub edi, edx
mov ecx, edi
sar ecx, 3
imul ecx, ecx, 0xb6db6db7
mov dword [esp + 0x2c], ecx
inc ecx
cmp ecx, 0x4924925
jae 0x499d8d
sub eax, edx
mov dword [esp + 0x38], edx
sar eax, 3
imul eax, eax, 0xb6db6db7
lea ebx, [eax + eax]
cmp ebx, ecx
cmovb ebx, ecx
cmp eax, 0x2492492
mov ecx, 0x4924924
cmovae ebx, ecx
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x49996f
mov eax, ebx
cmp ebx, 0x4924925
mov bl, byte [esp + 7]
jae 0x499d96
imul eax, eax, 0x38
push eax
call fcn.0050317c
add esp, 4
jmp 0x499975
mov bl, byte [esp + 7]
xor eax, eax
imul ecx, dword [esp + 0x2c], 0x38
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [esp + 0x88]
mov edx, dword [esp + 0x10]
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [eax + ecx + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx + 0x14], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx + 0x1c], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx + 0x18], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ecx + 0x24], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx + 0x20], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx + 0x28], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx + 0x2c], edx
mov byte [eax + ecx + 0x30], bl
mov edx, dword [esp + 0x12c]
mov ebx, dword [esp + 0x12f]
mov dword [eax + ecx + 0x31], edx
mov dword [eax + ecx + 0x34], ebx
lea ebx, [eax + ecx]
imul ecx, dword [esp + 0x28], 0x38
add ecx, eax
mov eax, 0x38
lea edx, [ebx + eax]
mov eax, dword [esp + 0x38]
sub ebx, edi
test edi, edi
jle 0x499a2c
push edi
push eax
push ebx
mov dword [esp + 0x1c], ecx
mov edi, eax
mov dword [esp + 0x18], edx
call fcn.00506bc0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edi
add esp, 0xc
test eax, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
je 0x499a45
push eax
call fcn.005031ac
add esp, 4
add esi, 0x58
cmp dword [esp + 0x3c], esi
jne 0x49977a
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
jmp 0x499b05
push 2
call fcn.00427300
add esp, 4
test al, al
je 0x499ce8
call fcn.004278b0
lea edi, [esp + 0x80]
mov ecx, edi
push eax
push 2
push 0x1e7
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00427b00
lea eax, [esp + 0x88]
push 0x12
push str.failed_to_truncate
push eax
call fcn.00401b93
add esp, 0xc
mov ecx, edi
call fcn.00427bc0
jmp 0x499ce8
push 2
call fcn.00427300
add esp, 4
test al, al
je 0x499ce4
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x1f3
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00427390
lea eax, [esp + 0x84]
push 0x16
push str.failed_to_write_header
push eax
call fcn.00401b93
add esp, 0xc
mov ecx, edi
call fcn.004268f0
jmp 0x499ce4
mov ecx, eax
sub ecx, eax
push ecx
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 4]
call fcn.004b8201
add esp, 0xc
test al, al
je 0x499b38
movzx eax, byte [esp + 0x68]
mov cl, 1
test al, cl
je 0x499bb3
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
jmp 0x499bb9
push 2
call fcn.00427300
add esp, 4
test al, al
je 0x499cbc
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x20b
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00427390
lea eax, [esp + 0x84]
push 0x17
push str.failed_to_write_records
jmp 0x499c08
push 2
call fcn.00427300
add esp, 4
test al, al
je 0x499cbc
lea ecx, [esp + 0x80]
push 2
push 0x201
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00427390
test byte [esi + 0x10], 1
lea eax, [esp + 0x84]
jne 0x499c18
add esi, 0x12
jmp 0x499c1b
shr eax, 1
lea ecx, [esp + 0x69]
push eax
push ecx
push dword [esi + 4]
call fcn.004b8201
add esp, 0xc
test al, al
jne 0x499cbc
push 2
call fcn.00427300
add esp, 4
test al, al
je 0x499cbc
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x210
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00427390
lea eax, [esp + 0x84]
push 0x1c
push str.failed_to_write_string_table
push eax
call fcn.00401b93
add esp, 0xc
mov ecx, edi
jmp 0x499cb7
mov esi, dword [esi + 0x18]
push esi
push eax
call fcn.00427c60
add esp, 8
push 0x18
push str._expected_to_start_with
push eax
call fcn.00401b93
add esp, 0xc
mov ecx, dword [esp + 8]
mov edi, eax
mov bl, 1
movzx eax, byte [ecx + 0xc]
test al, bl
je 0x499c4d
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
jmp 0x499c56
mov edx, dword [esp + 0x14]
shr eax, 1
add edx, 2
push eax
push edx
lea eax, [esp + 0x134]
push eax
call fcn.0042ff30
add esp, 0xc
movzx eax, byte [esp + 0x12c]
test al, bl
je 0x499c84
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
jmp 0x499c8d
shr eax, 1
lea ecx, [esp + 0x12d]
push eax
push ecx
push edi
call fcn.00401b93
add esp, 0xc
test byte [esp + 0x12c], bl
je 0x499cb0
push dword [esp + 0x134]
call fcn.005031ac
add esp, 4
lea ecx, [esp + 0x80]
call fcn.004268f0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x499cd1
mov dword [esp + 0x60], eax
push eax
call fcn.005031ac
add esp, 4
test byte [esp + 0x68], 1
je 0x499ce4
push dword [esp + 0x70]
call fcn.005031ac
add esp, 4
mov esi, dword [esp + 8]
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x40]
xorps xmm0, xmm0
mov dword [ecx + 0x10], eax
movaps xmmword [ecx], xmm0
dec edx
push ecx
push edx
push edx
push eax
push dword [esi + 4]
call dword [0x57e8c0]
test eax, eax
jne 0x499d57
push 2
call fcn.00427300
add esp, 4
test al, al
je 0x499d57
call fcn.004278b0
lea edi, [esp + 0x80]
mov ecx, edi
push eax
push 2
push 0x129
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00427b00
lea eax, [esp + 0x88]
push 0xc
push 0x540b20
push eax
call fcn.00401b93
add esp, 0xc
mov ecx, edi
call fcn.00427bc0
lea ecx, [esi + 0x1c]
call fcn.0049ad12
lea ecx, [esi + 0xc]
call fcn.004243d0
mov ecx, esi
call fcn.00497e44
push esi
call fcn.005031ac
add esp, 4
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.005031f1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x5c]
call fcn.0041f7ec
call fcn.005161c3
int3