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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x180
mov eax, dword [0x5599f4]
xor eax, ebp
mov dword [esp + 0x178], eax
mov ebx, dword [ecx]
test ebx, ebx
je 0x480780
cmp byte [ebx + 0x1c], 0
je 0x4806e8
xor eax, eax
push eax
push eax
push eax
push dword [ebx]
call fcn.004826da
add esp, 0x10
or edx, eax
je 0x480796
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x4806e8
lea esi, [esp + 0xa8]
mov ecx, esi
push 2
push 0x1d4
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00418160
lea eax, [esp + 0xb0]
push str.failed_to_rewind_to_write
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00417750
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x160]
xorps xmm0, xmm0
mov dword [ecx + 0x10], eax
movaps xmmword [ecx], xmm0
dec edx
push ecx
push edx
push edx
push eax
push dword [ebx]
call dword [0x50d2a8]
test eax, eax
jne 0x480757
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x480757
call fcn.00419070
lea esi, [esp + 0xa8]
mov ecx, esi
push eax
push 2
push pe_nt_image_headers32
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00419440
lea eax, [esp + 0xb8]
push 0x52a7bc
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00419560
lea ecx, [ebx + 0x20]
call fcn.00480e68
lea ecx, [ebx + 4]
call fcn.00401930
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x480777
push eax
call fcn.00482bd8
add esp, 4
push ebx
call fcn.004d4c09
add esp, 4
mov ecx, dword [esp + 0x178]
xor ecx, ebp
call fcn.004d4bc8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebx]
call dword [0x50d180]
test eax, eax
je 0x48089a
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x20]
mov eax, esi
sar eax, 3
imul edi, eax, 0xc4ec4ec5
lea eax, [esp + 0x58]
mov dword [eax + 0xc], 0
mov dword [eax], 0x43504144
mov dword [eax + 4], 1
mov dword [eax + 8], edi
push 0x10
push eax
push dword [ebx]
call fcn.00482dc3
add esp, 0xc
test al, al
je 0x4808ed
test esi, esi
je 0x4806e8
xor eax, eax
cmp edi, 0x4924925
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov byte [esp + 0x90], 0
mov dword [esp + 0x54], eax
jae 0x480e04
imul eax, edi, 0x38
mov dword [esp + 0x18], ebx
cmp eax, 0x1000
jb 0x48092a
cmp eax, 0xffffffdd
jae 0x480dff
add eax, 0x23
push eax
call fcn.004d4bd9
add esp, 4
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
mov ecx, edx
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x480937
sub ebx, dword [esp + 0xc]
xor eax, eax
mov edx, ecx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0xc]
lea edi, [edx + eax]
lea esi, [ecx + eax]
mov ecx, 0xe
add eax, 0x38
rep movsd dword es:[edi], dword [esi]
cmp ebx, eax
jne 0x480875
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x48093d
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x4806e8
call fcn.00419070
lea esi, [esp + 0xa8]
mov ecx, esi
push eax
push 2
push 0x1db
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00419440
lea eax, [esp + 0xb8]
push str.failed_to_truncate
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00419560
jmp 0x4806e8
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x4806e8
lea esi, [esp + 0xa8]
mov ecx, esi
push 2
push 0x1e7
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00418160
lea eax, [esp + 0xb0]
push str.failed_to_write_header
jmp 0x4806d8
push eax
call fcn.004d4bd9
add esp, 4
mov edx, eax
jmp 0x48093d
mov ebx, dword [esp + 0x18]
mov edx, ecx
lea ecx, [esp + 0x4c]
push edi
push 0
call fcn.00481042
add esp, 8
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov ebx, eax
mov dword [esp + 0x48], ecx
cmp ebx, ecx
je 0x480c5d
mov eax, dword [esp + 0x18]
lea eax, [eax + 4]
mov dword [esp + 0x1c], eax
lea esi, [ebx + 0x10]
lea edi, [esp + 0x78]
mov ecx, esi
push edi
call fcn.00410ee0
mov ecx, edi
push dword [esp + 0x1c]
call fcn.004107a0
mov ecx, edi
mov byte [esp + 0xc], al
call fcn.00401930
cmp byte [esp + 0xc], 0
mov dword [esp + 0x30], ebx
jne 0x480cd9
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
lea eax, [esp + 0x160]
mov ecx, esi
mov esi, eax
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm0
push esi
call fcn.00411290
mov eax, dword [esp + 0x170]
cmp dword [esp + 0x174], 7
mov ecx, esi
jbe 0x4809df
mov ecx, dword [esp + 0x160]
push eax
push ecx
lea esi, [esp + 0xb0]
push esi
call fcn.0041aa00
add esp, 0xc
lea edi, [esp + 0x90]
mov edx, esi
mov ecx, edi
call fcn.004810b2
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00401ae0
lea ecx, [esp + 0x160]
call fcn.00401930
lea edx, [ebx + 0x28]
mov ecx, edi
call fcn.004810b2
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x40]
mov cl, byte [ebx + 0x5c]
mov edi, dword [ebx + 0x50]
mov edx, dword [ebx + 0x58]
mov esi, dword [ebx + 0x60]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x44]
add cl, cl
or cl, byte [ebx + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x54]
mov ebx, dword [esp + 0x54]
mov word [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov byte [esp + 0xae], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
cmp ebx, eax
je 0x480ae5
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
mov ebx, dword [esp + 0x14]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov dword [eax + 0x10], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + 0x14], ebx
mov ebx, dword [esp + 0x28]
mov dword [eax + 0x18], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], esi
mov byte [eax + 0x30], cl
mov cl, byte [esp + 0xae]
mov byte [eax + 0x37], cl
movzx ecx, word [esp + 0xac]
mov word [eax + 0x35], cx
mov ecx, dword [esp + 0xa8]
mov dword [eax + 0x31], ecx
add eax, 0x38
mov dword [esp + 0x50], eax
jmp 0x480c4c
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x4c]
mov eax, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
sub eax, ecx
mov dword [esp + 0xc], ecx
mov ecx, 0x4924924
sar eax, 3
imul edi, eax, 0xb6db6db7
mov eax, edi
lea edx, [edi + 1]
shr eax, 1
sub ecx, eax
cmp edi, ecx
mov ecx, edx
ja 0x480b2b
add eax, edi
cmp eax, edx
cmovb eax, edx
mov ecx, eax
mov eax, ecx
test ecx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], eax
je 0x480b84
cmp eax, 0x4924925
mov ecx, eax
jae 0x480dff
imul eax, ecx, 0x38
cmp eax, 0x1000
jb 0x480b88
cmp eax, 0xffffffdd
jae 0x480dff
add eax, 0x23
push eax
call fcn.004d4bd9
add esp, 4
lea edx, [eax + 0x23]
mov ecx, dword [esp + 0x14]
and edx, 0xffffffe0
mov dword [edx - 4], eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
jmp 0x480b97
xor edx, edx
jmp 0x480b97
push eax
call fcn.004d4bd9
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, eax
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
imul eax, edi, 0x38
movsd qword [edx + eax + 8], xmm1
movsd qword [edx + eax], xmm0
mov dword [edx + eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + eax + 0x14], esi
mov dword [edx + eax + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + eax + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + eax + 0x24], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + eax + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + eax + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + eax + 0x2c], ecx
mov cl, byte [esp + 0x13]
mov byte [edx + eax + 0x30], cl
mov cl, byte [esp + 0xae]
mov byte [edx + eax + 0x37], cl
movzx ecx, word [esp + 0xac]
mov word [edx + eax + 0x35], cx
mov ecx, dword [esp + 0xa8]
mov dword [edx + eax + 0x31], ecx
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x480c38
sub ebx, ecx
xor eax, eax
lea esi, [ecx + eax]
lea edi, [edx + eax]
mov ecx, 0xe
add eax, 0x38
rep movsd dword es:[edi], dword [esi]
cmp ebx, eax
mov ecx, dword [esp + 0xc]
jne 0x480c20
lea ecx, [esp + 0x4c]
push dword [esp + 0x34]
push dword [esp + 0x48]
call fcn.00481042
add esp, 8
mov ebx, dword [esp + 0x30]
add ebx, 0x68
cmp ebx, dword [esp + 0x48]
jne 0x48096b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
sub ecx, eax
push ecx
push eax
mov ebx, dword [esp + 0x20]
push dword [ebx]
call fcn.00482dc3
add esp, 0xc
test al, al
je 0x480c9c
mov eax, dword [esp + 0xa0]
cmp dword [esp + 0xa4], 0xf
jbe 0x480d8a
mov ecx, dword [esp + 0x90]
jmp 0x480d91
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x480de5
lea esi, [esp + 0xa8]
mov ecx, esi
push 2
push 0x1ff
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00418160
lea eax, [esp + 0xb0]
push str.failed_to_write_records
jmp 0x480dd5
push 2
call fcn.004180d0
add esp, 4
mov ebx, dword [esp + 0x18]
test al, al
je 0x480de5
lea ecx, [esp + 0xa8]
push 2
push 0x1f5
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00418160
mov edx, dword [esp + 0x30]
mov ecx, 8
lea eax, [esp + 0xb0]
cmp dword [edx + 0x24], ecx
jb 0x480d1e
mov esi, dword [esi]
push esi
push eax
call fcn.00419620
add esp, 8
push str._expected_to_start_with
push eax
call fcn.004015c0
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x14]
cmp dword [ebx + 0x18], 7
jbe 0x480d48
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x160]
push eax
push dword [esp + 0x20]
push edi
call fcn.0041aa00
add esp, 0xc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x480d6f
mov ecx, dword [esp + 0x160]
push eax
push ecx
push esi
call fcn.00402d0a
add esp, 0xc
mov ecx, edi
call fcn.00401ae0
lea ecx, [esp + 0xa8]
jmp 0x480de0
lea ecx, [esp + 0x90]
push eax
push ecx
push dword [ebx]
call fcn.00482dc3
add esp, 0xc
test al, al
jne 0x480de5
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x480de5
lea esi, [esp + 0xa8]
mov ecx, esi
push 2
push 0x204
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00418160
lea eax, [esp + 0xb0]
push str.failed_to_write_string_table
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00417750
lea ecx, [esp + 0x4c]
call fcn.00480e0a
lea ecx, [esp + 0x90]
call fcn.00401ae0
jmp 0x4806e8
call fcn.004d595d
call fcn.004c9ba0
int3