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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x908
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x6401e4]
xor ecx, ebp
mov dword [esp + 0x900], ecx
lea ecx, [esp + 0x108]
lea edx, [esp + 0x5ac]
push ecx
push 0x354
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x508f9c
cmp dword [esp + 0x108], 0x354
jne 0x508ff1
lea ecx, [esp + 0x44]
lea eax, [esp + 0x1b8]
push ecx
push 0x3f4
push eax
push dword [esp + 0x5d8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x509040
cmp dword [esp + 0x44], 0x3f4
jne 0x5090a2
mov ebx, dword [ebp + 0x14]
lea eax, [ebx + 0xc]
lea edx, [esp + 0x228]
mov ecx, esi
push eax
call fcn.0050a150
add esp, 4
test al, al
je 0x509108
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x44]
push ecx
push 0x40
push eax
push dword [esp + 0x5d0]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x509122
cmp dword [esp + 0x44], 0x40
jne 0x509173
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xd8]
mov eax, dword [esp + 0xdc]
mov dword [esp + 4], eax
lea eax, [esp + 0x1b4]
push eax
push 0x84
lea eax, [esp + 0x4c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x508f37
lea eax, [ebx + 0x28]
lea ecx, [ebx + 0x34]
mov dword [esp + 8], ecx
mov dword [esp], eax
cmp dword [esp + 0x1b4], 0x84
jne 0x5091be
mov dword [esp + 0x14], edi
mov ecx, esi
lea edx, [esp + 0x8c]
lea eax, [esp + 0x18]
push eax
call fcn.0050a150
add esp, 4
test al, al
jne 0x508df0
lea ecx, [esp + 0x18]
push 0x5dd926
call fcn.0047966c
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov edi, ebx
mov ebx, dword [ebx + 0x2c]
mov ecx, dword [edi + 0x30]
cmp ebx, ecx
je 0x508e5a
mov ecx, ebx
lea eax, [esp + 0x18]
push eax
call fcn.00478e44
lea eax, [esp + 0x28]
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x10], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [ebx + 0x20], xmm0
add ebx, 0x28
mov dword [edi + 0x2c], ebx
mov ebx, edi
jmp 0x508ef1
mov eax, dword [esp]
mov edi, dword [eax]
sub ebx, edi
sar ebx, 3
imul eax, ebx, 0xcccccccd
lea edx, [eax + 1]
cmp edx, 0x6666667
jae 0x50923e
sub ecx, edi
sar ecx, 3
imul ecx, ecx, 0xcccccccd
lea edi, [ecx + ecx]
cmp edi, edx
cmovb edi, edx
cmp ecx, 0x3333333
mov ecx, 0x6666666
cmovae edi, ecx
lea ecx, [esp + 0x108]
push dword [esp + 8]
push eax
push edi
mov edi, ecx
call fcn.0040e7a4
mov ebx, dword [esp + 0x110]
mov ecx, ebx
lea eax, [esp + 0x18]
push eax
call fcn.00478e44
lea eax, [esp + 0x28]
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x10], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [ebx + 0x20], xmm0
add dword [esp + 0x110], 0x28
mov ecx, dword [esp]
push edi
call fcn.0050a27c
mov ecx, edi
call fcn.0050a304
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
xor ecx, dword [esp + 0x10]
or ecx, eax
je 0x509224
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
lea eax, [esp + 0x1b4]
push eax
push 0x84
lea eax, [esp + 0x4c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x508db3
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509224
call fcn.00484390
lea esi, [esp + 0x108]
mov ecx, esi
push eax
push 2
push 0x76
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.004844c0
lea eax, [esp + 0x110]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xbe
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::LDR_DATA_TABLE_ENTRY_crashpad::process_types::internal::Traits64__
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00484570
jmp 0x509224
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509108
call fcn.00484390
lea esi, [esp + 0x1b8]
mov ecx, esi
push eax
push 2
push 0x76
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.004844c0
lea eax, [esp + 0x1c0]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xad
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::PEB_crashpad::process_types::internal::Traits64__
jmp 0x509090
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509108
lea esi, [esp + 0x1b8]
mov ecx, esi
push 2
push 0x7a
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.00483ab0
lea eax, [esp + 0x1c0]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xad
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::PEB_crashpad::process_types::internal::Traits64__
jmp 0x5090e8
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509108
call fcn.00484390
lea esi, [esp + 0x108]
mov ecx, esi
push eax
push 2
push 0x76
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.004844c0
lea eax, [esp + 0x110]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xc5
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::RTL_USER_PROCESS_PARAMETERS_crashpad::process_types::internal::Traits64__
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00484570
jmp 0x509108
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509108
lea esi, [esp + 0x108]
mov ecx, esi
push 2
push 0x7a
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.00483ab0
lea eax, [esp + 0x110]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xc5
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::RTL_USER_PROCESS_PARAMETERS_crashpad::process_types::internal::Traits64__
push eax
call fcn.00401baa
add esp, 0xc
push 0xf
push str._incorrect_size
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00483e50
xor ebx, ebx
mov ecx, dword [esp + 0x900]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509108
call fcn.00484390
lea esi, [esp + 0x108]
mov ecx, esi
push eax
push 2
push 0x76
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.004844c0
lea eax, [esp + 0x110]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xb6
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::PEB_LDR_DATA_crashpad::process_types::internal::Traits64__
jmp 0x509090
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509108
lea esi, [esp + 0x108]
mov ecx, esi
push 2
push 0x7a
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.00483ab0
lea eax, [esp + 0x110]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xb6
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::PEB_LDR_DATA_crashpad::process_types::internal::Traits64__
jmp 0x5090e8
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x509224
lea esi, [esp + 0x108]
mov ecx, esi
push 2
push 0x7a
push str..._.._third_party_crashpad_crashpad_util_win_process_info.cc
call fcn.00483ab0
lea eax, [esp + 0x110]
push 0x12
push 0x5dd92e
push eax
call fcn.00401baa
add esp, 0xc
push 0xbe
push str.bool___cdecl_crashpad::_anonymous_namespace_::ReadStruct_HANDLE__crashpad::WinVMAddress__T____T__crashpad::process_types::LDR_DATA_TABLE_ENTRY_crashpad::process_types::internal::Traits64__
push eax
call fcn.00401baa
add esp, 0xc
push 0xf
push str._incorrect_size
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00483e50
cmp byte [esp + 0x23], 0
jns 0x509237
push dword [esp + 0x18]
call fcn.00596316
add esp, 4
mov bl, 1
jmp 0x50910a
mov ecx, dword [esp]
call fcn.0047a3cc