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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, edx
mov edi, ecx
mov edx, dword [edx + 0x50]
movzx eax, byte [esi + 0x95]
mov ecx, dword [esi + 0x5c]
movsd xmm0, qword [esi + 0x84]
mov ebx, dword [esi + 0x54]
mov dword [esp + 0x24], edx
mov byte [esp + 0xf], al
mov eax, dword [esi + 0x8c]
test ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ecx
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x3c], eax
je 0x5132d0
xor edx, edx
cmp ecx, 0x20000000
setb al
jae 0x513681
mov dl, al
lea ebx, [ecx*4]
add edx, edx
test ebx, ebx
mov dword [esp + 0x14], ebx
js 0x513688
mov dword [esp + 0x10], edx
je 0x5132d9
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
je 0x5132e1
mov ebx, dword [esp + 0x14]
jmp 0x5132f7
mov eax, 2
xor ebx, ebx
jmp 0x513308
mov ebx, dword [esp + 0x14]
mov eax, edx
jmp 0x513300
call sub.kernel32.dll_GetProcessHeap
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x51366d
mov dword [0x5da100], eax
push ebx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x51366d
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x24], eax
push eax
call sym._memcpy
add esp, 0xc
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x60]
test ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
je 0x5133a4
xor eax, eax
cmp ecx, 0x8000000
setb byte [esp + 8]
jae 0x51368f
movzx ebx, byte [esp + 8]
mov edx, ecx
shl edx, 4
mov al, bl
shl eax, 3
test edx, edx
js 0x51368f
mov dword [esp + 8], eax
je 0x5133ad
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x51338a
mov dword [esp + 4], edx
call sub.kernel32.dll_GetProcessHeap
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x51367a
mov dword [0x5da100], eax
push edx
push 0
push eax
mov ebx, edx
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [esp + 8]
mov edx, ebx
test eax, eax
jne 0x5133bb
jmp 0x51367a
mov eax, 8
xor edx, edx
jmp 0x5133bb
mov ecx, dword [esp + 8]
mov eax, ecx
test eax, eax
je 0x51367a
push edx
push dword [esp + 0x14]
mov dword [esp + 0x18], eax
push eax
call sym._memcpy
add esp, 0xc
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x6c]
test ecx, ecx
mov dword [esp + 8], ecx
je 0x513457
mov dword [esp], edx
xor edx, edx
cmp ecx, 0x20000000
setb al
jae 0x513696
mov dl, al
lea ebx, [ecx*4]
add edx, edx
test ebx, ebx
mov dword [esp + 4], ebx
js 0x513696
mov dword [esp + 0x18], edx
je 0x51363d
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x513436
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x51364e
mov dword [0x5da100], eax
push dword [esp + 4]
push 0
push eax
call sub.kernel32.dll_HeapAlloc
mov edx, dword [esp]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x51364e
mov ecx, dword [esp + 4]
jmp 0x51345e
mov eax, 2
xor ecx, ecx
push ecx
push edx
mov dword [esp + 0xc], eax
push eax
call sym._memcpy
add esp, 0xc
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x78]
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x5134f5
mov dword [esp + 0x20], eax
xor eax, eax
cmp ecx, 0x2492493
setb bl
jae 0x51369d
mov al, bl
imul edx, ecx, 0x38
shl eax, 3
test edx, edx
js 0x51369d
mov dword [esp], eax
je 0x513659
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5134d5
mov ebx, edx
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [esp]
mov edx, ebx
test eax, eax
je 0x513666
mov dword [0x5da100], eax
push edx
push 0
push eax
mov ebx, edx
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [esp]
mov edx, ebx
mov ebx, eax
test ebx, ebx
je 0x513666
mov eax, dword [esp + 0x20]
jmp 0x5134fc
mov ebx, 8
xor edx, edx
push edx
push eax
push ebx
call sym._memcpy
add esp, 0xc
mov eax, dword [esi + 0x40]
mov dword [esp], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
xor eax, 0x2e
or eax, dword [esi + 4]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x2c], eax
jne 0x513535
movaps xmm1, xmmword [0x560560]
jmp 0x513565
lea ecx, [esp + 0x68]
mov edx, esi
call sym.__LT_gimli..read..unit..AttributeValue_LT_R_C_Offset_GT__u20_as_u20_core..clone..Clone_GT_::clone::he72ff63dec88b46e
movsd xmm1, qword [esi + 0x30]
movups xmm0, xmmword [esi + 0x10]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [esi + 0x28]
movsd qword [esp + 0x40], xmm1
movups xmm1, xmmword [esp + 0x68]
mov edx, dword [esp + 0x24]
movaps xmm2, xmmword [esp + 0x50]
mov dword [edi + 0x50], edx
mov edx, dword [esp + 0x34]
movlps qword [edi + 0x84], xmm2
movsd xmm2, qword [esp + 0x40]
mov dword [edi + 0x8c], edx
mov edx, dword [esi + 0x90]
mov dword [edi + 0x90], edx
movzx edx, byte [esi + 0x94]
mov esi, dword [esp + 0x18]
mov byte [edi + 0x94], dl
movzx edx, byte [esp + 0xf]
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 + 0x1c]
mov dword [edi + 0x54], edx
mov edx, dword [esp + 0x28]
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 + 4]
mov dword [edi + 0x6c], edx
mov edx, dword [esp + 8]
mov dword [edi + 0x70], edx
mov dword [edi + 0x74], edx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], esi
mov dword [edi + 0x80], esi
mov ebx, dword [esp]
mov esi, dword [esp + 0x20]
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], esi
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], esi
movups xmmword [edi], xmm1
movsd xmm1, qword [esp + 0x48]
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
movsd qword [edi + 0x28], xmm2
movsd qword [edi + 0x30], xmm1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp]
mov eax, ecx
test eax, eax
jne 0x513451
mov edx, dword [esp + 4]
call dbg.handle_alloc_error
jmp 0x5136a2
mov ecx, dword [esp]
mov ebx, ecx
test ebx, ebx
jne 0x5134ef
call dbg.handle_alloc_error
jmp 0x5136a2
mov ecx, dword [esp + 0x10]
mov edx, ebx
call dbg.handle_alloc_error
ud2
call dbg.handle_alloc_error
jmp 0x5136a2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
jmp 0x5136a2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
jmp 0x5136a2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2