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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb4
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebx], 0
mov eax, dword [esi]
dec eax
cmp eax, 5
ja case.default.0x5218c2
jmp dword [eax*4 + 0x58fb10]
push 0x308
call fcn.005283f4
add esp, 4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 0x24], xmm0
xor eax, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x34], eax
mov dword [edi], 0x57c398
lea ecx, [edi + 0x40]
push 0x2c8
push eax
push ecx
call fcn.0052c210
add esp, 0xc
mov dword [ebx], edi
mov esi, dword [esi + 4]
mov dword [edi + 0x3c], 0x1003f
mov eax, dword [esi + 0x234]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x238]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x23c]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x240]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x24c]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x250]
mov dword [edi + 0x54], eax
lea eax, [edi + 0x58]
lea ebx, [esi + 0x34]
push eax
push ebx
call fcn.0051dd84
add esp, 8
movzx eax, word [esi + 0x30]
mov dword [edi + 0xc8], eax
movzx eax, word [esi + 0x2e]
mov dword [edi + 0xcc], eax
movzx eax, word [esi + 0x2c]
mov dword [edi + 0xd0], eax
movzx eax, word [esi + 0x2a]
mov dword [edi + 0xd4], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xd8], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0xdc], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xe0], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xe4], eax
mov eax, dword [esi + 8]
mov dword [edi + 0xe8], eax
mov eax, dword [esi]
mov dword [edi + 0xec], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0xf0], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0xf4], eax
movzx eax, word [esi + 0x28]
mov dword [edi + 0xf8], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0xfc], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x100], eax
movzx eax, word [esi + 0x32]
mov dword [edi + 0x104], eax
add edi, 0x108
push 0x200
push ebx
push edi
call fcn.0052bc90
add esp, 0xc
jmp 0x522235
push 0x298
call fcn.005283f4
add esp, 4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 0x24], xmm0
xor ebx, ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x34], ebx
mov dword [eax], 0x57c458
add eax, 0x40
push 0x258
push ebx
push eax
call fcn.0052c210
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov esi, dword [esi + 4]
mov dword [edi + 0x40], 0x4000e
lea eax, [edi + 0x48]
mov ecx, 0x100
push ecx
push esi
push eax
call fcn.0052bc90
add esp, 0xc
mov eax, dword [esi + 0x104]
mov dword [edi + 0x148], eax
mov dword [edi + 0x14c], ebx
mov eax, dword [esi + 0x100]
mov dword [edi + 0x150], eax
mov dword [edi + 0x154], ebx
mov eax, dword [esi + 0x108]
mov dword [edi + 0x17c], ebx
mov dword [edi + 0x178], eax
mov eax, dword [esi + 0x10c]
mov dword [edi + 0x180], eax
mov dword [edi + 0x184], ebx
mov eax, dword [esi + 0x110]
mov dword [edi + 0x188], eax
mov eax, dword [esi + 0x114]
mov dword [edi + 0x18c], eax
lea eax, [edi + 0x190]
lea ecx, [esi + 0x138]
mov edx, 0x100
push edx
push ecx
push eax
call fcn.0052bc90
add esp, 0xc
mov eax, dword [esi + 0x238]
mov dword [edi + 0x290], eax
mov eax, dword [esi + 0x23c]
mov dword [edi + 0x294], eax
mov eax, 0xfffffff4
mov ecx, dword [esi + eax + 0x124]
mov dword [edi + eax + 0x164], ecx
mov ecx, dword [esi + eax + 0x130]
mov dword [edi + eax + 0x170], ecx
add eax, 4
jne 0x521b01
mov eax, dword [esi + 0x130]
mov dword [edi + 0x170], eax
jmp 0x522235
push 0x1b0
call fcn.005283f4
add esp, 4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 0x24], xmm0
xor eax, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x34], eax
mov dword [edi], 0x57c3f8
lea ecx, [edi + 0x40]
push 0x170
push eax
push ecx
call fcn.0052c210
add esp, 0xc
mov dword [ebx], edi
mov eax, dword [esi + 4]
mov dword [edi + 0x40], 0x40000006
movups xmm0, xmmword [eax + 0x1c]
movups xmmword [edi + 0x60], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [edi + 0x54], xmm1
movups xmmword [edi + 0x44], xmm0
mov ecx, dword [eax + 0x2c]
mov dword [edi + 0x70], ecx
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x74], ecx
mov ecx, dword [eax + 0x34]
mov dword [edi + 0x78], ecx
mov ecx, dword [eax + 0x38]
mov dword [edi + 0x7c], ecx
mov ecx, dword [eax + 0x3c]
mov dword [edi + 0x80], ecx
mov ecx, dword [eax + 0x40]
mov dword [edi + 0x84], ecx
mov ecx, dword [eax + 0x1b8]
add eax, 0xb8
mov dword [edi + 0x88], ecx
lea ecx, [edi + 0x90]
push 0x100
push eax
push ecx
call fcn.0052bc90
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [edi + 0x190], xmm0
movups xmmword [edi + 0x1a0], xmm0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
jmp 0x522242
push 0x3d0
call fcn.005283f4
add esp, 4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 0x24], xmm0
xor ebx, ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x34], ebx
mov dword [eax], 0x57c428
add eax, 0x40
push 0x390
push ebx
push eax
call fcn.0052c210
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov esi, dword [esi + 4]
mov dword [edi + 0x40], 0x400007
lea eax, [edi + 0x48]
push 0xe8
push esi
push eax
call fcn.0052bc90
add esp, 0xc
movsd xmm0, qword [esi + 0xe8]
movsd qword [edi + 0x130], xmm0
movsd xmm0, qword [esi + 0xf0]
movsd qword [edi + 0x138], xmm0
movsd xmm0, qword [esi + 0xf8]
movsd qword [edi + 0x140], xmm0
movsd xmm0, qword [esi + 0x100]
movsd qword [edi + 0x148], xmm0
mov eax, dword [esi + 0x108]
mov dword [edi + 0x44], eax
lea eax, [edi + 0x150]
lea ecx, [esi + 0x110]
push 0x200
push ecx
push eax
call fcn.0052bc90
add esp, 0xc
mov eax, dword [esi + 0x314]
mov dword [edi + 0x350], eax
mov eax, dword [esi + 0x310]
mov dword [edi + 0x354], eax
mov dword [edi + 0x3cc], ebx
mov dword [edi + 0x3c8], ebx
xorps xmm0, xmm0
movups xmmword [edi + 0x3b8], xmm0
movups xmmword [edi + 0x3a8], xmm0
movups xmmword [edi + 0x398], xmm0
movups xmmword [edi + 0x388], xmm0
movups xmmword [edi + 0x378], xmm0
movups xmmword [edi + 0x368], xmm0
movups xmmword [edi + 0x358], xmm0
jmp 0x522235
push 0x10
push 0x520
call fcn.00460680
add esp, 8
test eax, eax
je 0x52224d
mov edi, eax
xor eax, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x34], eax
xorps xmm0, xmm0
movups xmmword [edi + 0x24], xmm0
movups xmmword [edi + 0x14], xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi], 0x57c3c8
lea ecx, [edi + 0x40]
push 0x4dc
push eax
push ecx
call fcn.0052c210
add esp, 0xc
mov dword [edi + 0x70], 0x100000
mov dword [ebx], edi
mov esi, dword [esi + 4]
mov ecx, dword [esi + 0x2d8]
xor eax, eax
or ecx, dword [esi + 0x2dc]
setne al
shl eax, 6
or eax, 0x10001f
mov dword [edi + 0x70], eax
lea eax, [esi + 0x98]
mov ecx, dword [esi + 0xb0]
mov dword [edi + 0x74], ecx
movzx ecx, word [esi + 0x90]
mov word [edi + 0x78], cx
movzx ecx, word [esi + 0x92]
mov word [edi + 0x7e], cx
movzx ecx, word [esi + 0x94]
mov word [edi + 0x80], cx
mov ecx, dword [esi + 0x88]
mov dword [edi + 0x84], ecx
movsd xmm0, qword [esi + 0x298]
movsd qword [edi + 0x88], xmm0
movsd xmm0, qword [esi + 0x2a0]
movsd qword [edi + 0x90], xmm0
movsd xmm0, qword [esi + 0x2a8]
movsd qword [edi + 0x98], xmm0
movsd xmm0, qword [esi + 0x2b0]
movsd qword [edi + 0xa0], xmm0
movsd xmm0, qword [esi + 0x2c8]
movsd qword [edi + 0xa8], xmm0
movsd xmm0, qword [esi + 0x2d0]
movsd qword [edi + 0xb0], xmm0
movsd xmm0, qword [esi]
movsd qword [edi + 0xb8], xmm0
movsd xmm0, qword [esi + 0x10]
movsd qword [edi + 0xc0], xmm0
movsd xmm0, qword [esi + 0x18]
movsd qword [edi + 0xc8], xmm0
movsd xmm0, qword [esi + 8]
movsd qword [edi + 0xd0], xmm0
movsd xmm0, qword [esi + 0x38]
movsd qword [edi + 0xd8], xmm0
movsd xmm0, qword [esi + 0x30]
movsd qword [edi + 0xe0], xmm0
movsd xmm0, qword [esi + 0x28]
movsd qword [edi + 0xe8], xmm0
movsd xmm0, qword [esi + 0x20]
movsd qword [edi + 0xf0], xmm0
movsd xmm0, qword [esi + 0x40]
movsd qword [edi + 0xf8], xmm0
movsd xmm0, qword [esi + 0x48]
movsd qword [edi + 0x100], xmm0
movsd xmm0, qword [esi + 0x50]
movsd qword [edi + 0x108], xmm0
movsd xmm0, qword [esi + 0x58]
movsd qword [edi + 0x110], xmm0
movsd xmm0, qword [esi + 0x60]
movsd qword [edi + 0x118], xmm0
movsd xmm0, qword [esi + 0x68]
movsd qword [edi + 0x120], xmm0
movsd xmm0, qword [esi + 0x70]
movsd qword [edi + 0x128], xmm0
movsd xmm0, qword [esi + 0x78]
movsd qword [edi + 0x130], xmm0
movsd xmm0, qword [esi + 0x80]
movsd qword [edi + 0x138], xmm0
mov ecx, edi
add ecx, 0x140
push 0x200
push eax
push ecx
call fcn.0052bc90
add esp, 0xc
test byte [esi + 0x2d9], 8
je 0x522235
push 0x18
call fcn.005283f4
add esp, 4
mov dword [eax], method.std::Cr::locale::facet.virtual_0
movsd xmm0, qword [esi + 0x2e0]
movsd qword [eax + 8], xmm0
movsd xmm0, qword [esi + 0x2e8]
movsd qword [eax + 0x10], xmm0
mov ebx, dword [edi + 0x514]
mov ecx, dword [edi + 0x518]
cmp ebx, ecx
jae 0x52211d
test ebx, ebx
je 0x52225c
mov dword [ebx], eax
add ebx, 4
mov dword [edi + 0x514], ebx
jmp 0x522235
push 0x2c0
call fcn.005283f4
add esp, 4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 0x24], xmm0
xor eax, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x34], eax
mov dword [edi], 0x57c488
lea ebx, [edi + 0x48]
push 0x278
push eax
push ebx
call fcn.0052c210
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov esi, dword [esi + 4]
xor eax, eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], 0x8000e
mov eax, 0x100
push eax
push esi
push ebx
call fcn.0052bc90
add esp, 0xc
movsd xmm0, qword [esi + 0x108]
movsd qword [edi + 0x148], xmm0
movsd xmm0, qword [esi + 0x100]
movsd qword [edi + 0x150], xmm0
movsd xmm0, qword [esi + 0x110]
movsd qword [edi + 0x190], xmm0
movsd xmm0, qword [esi + 0x118]
movsd qword [edi + 0x198], xmm0
movsd xmm0, qword [esi + 0x120]
movsd qword [edi + 0x1a0], xmm0
movsd xmm0, qword [esi + 0x128]
movsd qword [edi + 0x1a8], xmm0
lea eax, [edi + 0x1b0]
lea ecx, [esi + 0x168]
mov edx, 0x100
push edx
push ecx
push eax
call fcn.0052bc90
add esp, 0xc
movsd xmm0, qword [esi + 0x268]
movsd qword [edi + 0x2b0], xmm0
movsd xmm0, qword [esi + 0x270]
movsd qword [edi + 0x2b8], xmm0
mov eax, 0xffffffe8
movsd xmm0, qword [esi + eax + 0x148]
movsd qword [edi + eax + 0x170], xmm0
movsd xmm0, qword [esi + eax + 0x160]
movsd qword [edi + eax + 0x188], xmm0
add eax, 8
jne 0x522091
movsd xmm0, qword [esi + 0x160]
movsd qword [edi + 0x188], xmm0
jmp 0x522235
cmp dword [0x59d910], 2
jg 0x522235
lea edi, [ebp - 0xb4]
mov ecx, edi
push 2
push 0x6a
push str....._third_partycrashpadcrashpadminidumpminidump_context_writer.cc
call fcn.00470c60
lea eax, [ebp - 0xac]
push 0x1d
push str.unknown_context_architecture
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, eax
push dword [esi]
call fcn.0042ab00
mov ecx, edi
call fcn.00471070
jmp 0x522235
mov dword [ebp - 0xb8], eax
mov edx, dword [edi + 0x510]
mov esi, ebx
sub esi, edx
sar esi, 2
lea eax, [esi + 1]
cmp eax, 0x40000000
jae 0x522252
mov dword [ebp - 0xbc], edx
sub ecx, edx
mov edx, ecx
shr edx, 1
cmp edx, eax
cmovbe edx, eax
cmp ecx, 0x7ffffffc
mov eax, 0x3fffffff
cmovb eax, edx
test eax, eax
mov dword [ebp - 0xc0], eax
je 0x522184
cmp eax, 0x40000000
jae 0x522257
lea eax, [eax*4]
push eax
call fcn.005283f4
add esp, 4
jmp 0x522186
xor eax, eax
shl esi, 2
add esi, eax
mov edx, dword [ebp - 0xbc]
je 0x52225f
mov ecx, dword [ebp - 0xc0]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0xb8]
mov dword [esi], ecx
lea ecx, [esi + 4]
cmp ebx, edx
je 0x522216
mov dword [ebp - 0xb8], edi
mov edx, dword [ebx - 4]
mov dword [ebx - 4], 0
lea edi, [ebx - 4]
mov dword [esi - 4], edx
add esi, 0xfffffffc
mov ebx, edi
cmp edi, dword [ebp - 0xbc]
jne 0x5221b5
mov edx, dword [ebp - 0xb8]
mov ebx, dword [edx + 0x510]
mov edi, dword [edx + 0x514]
mov dword [edx + 0x510], esi
mov dword [edx + 0x514], ecx
mov dword [edx + 0x518], eax
cmp edi, ebx
je 0x522228
mov eax, dword [edi - 4]
mov dword [edi - 4], 0
add edi, 0xfffffffc
test eax, eax
je 0x5221f6
push eax
call fcn.00528424
add esp, 4
jmp 0x5221f6
mov dword [edi + 0x510], esi
mov dword [edi + 0x514], ecx
mov dword [edi + 0x518], eax
test ebx, ebx
je 0x522235
push ebx
call fcn.00528424
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, dword [ebp + 8]
add esp, 0xb4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0044d47c
call fcn.0053bf0b
call fcn.0042d55a
int3
int3