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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov ebx, edx
mov edi, ecx
mov edx, dword [edx + 0x50]
movzx eax, byte [ebx + 0x95]
mov ecx, dword [ebx + 0x5c]
movsd xmm0, qword [ebx + 0x84]
mov dword [esp + 0x1c], edx
mov byte [esp + 3], al
mov eax, dword [ebx + 0x8c]
test ecx, ecx
mov dword [esp + 0x24], ecx
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x14], eax
mov eax, 2
je 0x5024e7
cmp ecx, 0x1fffffff
ja 0x5027b3
lea esi, [ecx*4]
test esi, esi
js 0x5027ba
mov ecx, 0
je 0x5024e9
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
jne 0x5024d2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5027d6
mov dword [0x5c6108], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5027d6
mov ecx, esi
jmp 0x5024e9
xor ecx, ecx
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
push eax
call sym._memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x60]
mov eax, 8
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x50256d
cmp ecx, 0x7ffffff
ja 0x5027c1
mov esi, ecx
shl esi, 4
test esi, esi
js 0x5027c1
mov ecx, 0
je 0x50256f
mov dword [esp + 0x10], edx
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
jne 0x502554
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5027e4
mov dword [0x5c6108], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5027e4
mov edx, dword [esp + 0x10]
mov ecx, esi
jmp 0x50256f
xor ecx, ecx
push ecx
push edx
mov dword [esp + 0x18], eax
push eax
call sym._memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x6c]
mov eax, 2
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x5025f2
cmp ecx, 0x1fffffff
ja 0x5027c8
lea esi, [ecx*4]
test esi, esi
js 0x5027c8
mov ecx, 0
je 0x5025f4
mov dword [esp + 0xc], edx
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
jne 0x5025d9
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5027f2
mov dword [0x5c6108], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5027f2
mov edx, dword [esp + 0xc]
mov ecx, esi
jmp 0x5025f4
xor ecx, ecx
push ecx
push edx
mov dword [esp + 0x14], eax
push eax
call sym._memcpy
add esp, 0xc
mov esi, dword [ebx + 0x80]
mov edx, dword [ebx + 0x78]
mov eax, 8
test esi, esi
je 0x502659
cmp esi, 0x2492492
mov ecx, 0
mov dword [esp + 8], edx
ja 0x5027cf
mov edx, esi
imul esi, esi, 0x38
test esi, esi
mov dword [esp + 4], esi
js 0x5027cf
mov esi, edx
mov edx, dword [esp + 8]
je 0x502690
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
je 0x50265d
mov ecx, dword [esp + 4]
jmp 0x502675
xor ecx, ecx
jmp 0x502690
call sub.KERNEL32.dll_GetProcessHeap
mov edx, dword [esp + 4]
test eax, eax
je 0x502800
mov dword [0x5c6108], eax
mov ecx, edx
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edx, dword [esp + 4]
test eax, eax
je 0x502800
mov ecx, edx
mov edx, dword [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], eax
push eax
call sym._memcpy
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x48]
xor eax, 0x2e
mov dword [esp + 4], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x2c], edx
or eax, dword [ebx + 4]
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], eax
jne 0x5026ce
movaps xmm1, xmmword [0x54bc00]
jmp 0x5026ec
lea ecx, [esp + 0x58]
mov edx, ebx
call dbg.clone<gimli::read::endian_slice::EndianSlice<gimli::endianity::LittleEndian>, usize>
movups xmm2, xmmword [ebx + 0x10]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
movups xmm0, xmmword [ebx + 0x28]
movups xmm1, xmmword [esp + 0x58]
mov edx, dword [esp + 0x1c]
movaps xmm3, xmmword [esp + 0x40]
mov dword [edi + 0x50], edx
mov edx, dword [esp + 0x34]
movlps qword [edi + 0x84], xmm3
mov dword [edi + 0x8c], edx
mov edx, dword [ebx + 0x90]
mov dword [edi + 0x90], edx
movzx edx, byte [ebx + 0x94]
mov ebx, dword [esp + 4]
mov byte [edi + 0x94], dl
movzx edx, byte [esp + 3]
mov byte [edi + 0x95], dl
mov edx, dword [esp + 0x38]
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x3c], edx
mov edx, dword [esp + 0x20]
mov dword [edi + 0x54], edx
mov edx, dword [esp + 0x24]
mov dword [edi + 0x58], edx
mov dword [edi + 0x5c], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 0x60], edx
mov edx, dword [esp + 0x14]
mov dword [edi + 0x64], edx
mov dword [edi + 0x68], edx
mov edx, dword [esp + 0xc]
mov dword [edi + 0x6c], edx
mov edx, dword [esp + 0x18]
mov dword [edi + 0x70], edx
mov dword [edi + 0x74], edx
mov edx, dword [esp + 8]
mov dword [edi + 0x78], edx
mov dword [edi + 0x7c], esi
mov dword [edi + 0x80], esi
mov esi, dword [esp + 0x30]
mov dword [edi + 0x40], ebx
mov ebx, dword [esp + 0x2c]
mov dword [edi + 0x44], esi
mov esi, dword [esp + 0x28]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], esi
movups xmmword [edi], xmm1
movups xmmword [edi + 0x10], xmm2
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
movups xmmword [edi + 0x28], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.alloc::raw_vec::capacity_overflow::hd0578b62e5d0dfac
ud2
call sym.alloc::raw_vec::capacity_overflow::hd0578b62e5d0dfac
ud2
call sym.alloc::raw_vec::capacity_overflow::hd0578b62e5d0dfac
jmp 0x50280a
call sym.alloc::raw_vec::capacity_overflow::hd0578b62e5d0dfac
jmp 0x50280a
call sym.alloc::raw_vec::capacity_overflow::hd0578b62e5d0dfac
jmp 0x50280a
mov ecx, 2
mov edx, esi
call dbg.handle_alloc_error
ud2
mov ecx, 8
mov edx, esi
call dbg.handle_alloc_error
jmp 0x50280a
mov ecx, 2
mov edx, esi
call dbg.handle_alloc_error
jmp 0x50280a
mov ecx, 8
call dbg.handle_alloc_error
ud2