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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
mov esi, dword [ebp + 8]
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x108], eax
mov al, byte [ebp + 0x10]
mov byte [esp + 0x17], al
movsd xmm0, qword [ebp + 0x20]
movsd qword [esp + 0xff], xmm0
movups xmm0, xmmword [ebp + 0x11]
movaps xmmword [esp + 0xf0], xmm0
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x48], edx
cmp eax, edx
mov dword [esp + 0x4c], eax
je 0x5030e4
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0xc], eax
lea edi, [ecx + 8]
lea eax, [ecx + 0xc]
mov edx, dword [esi + 0xb0]
cmp edx, 0xffffffff
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
je 0x5030b2
mov esi, dword [esi + 0xb0]
mov ebx, dword [eax]
mov eax, edi
mov edi, dword [edi]
sub ebx, edi
sar ebx, 5
cmp ebx, esi
jbe 0x503751
shl esi, 5
mov ebx, dword [edi + esi + 0x10]
mov ecx, dword [esp + 0x18]
mov edi, eax
mov esi, dword [ebp + 8]
cmp edx, 0xffffffff
setne byte [esp + 0x23]
mov edx, dword [esi + 0xb0]
cmp byte [esp + 0x17], 0
je 0x5030ba
lea eax, [ecx + 4]
mov dword [esp + 0x28], eax
cmp edx, 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
je 0x5031a9
mov dword [esp + 0x30], esp
mov eax, esi
mov esi, dword [esi + 0xb0]
movups xmm0, xmmword [esp + 0xf7]
movaps xmmword [esp + 0x50], xmm0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 8]
mov eax, dword [edx]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 5
cmp eax, esi
jbe 0x503733
mov eax, esi
shl eax, 5
mov ecx, dword [ecx + eax + 0x18]
mov dword [ecx + 0xb0], 0xffffffff
mov ecx, dword [edx]
mov ebx, dword [edi]
sub ecx, ebx
sar ecx, 5
mov dword [esp + 0xc], esi
cmp ecx, esi
jbe 0x503733
add ebx, eax
lea edi, [esp + 0xa0]
lea ecx, [esp + 0x50]
push edi
call fcn.004f8130
lea esi, [esp + 0x80]
mov ecx, ebx
push esi
call fcn.004f8130
mov eax, dword [esi]
cmp eax, dword [edi]
mov eax, dword [esi + 4]
sbb eax, dword [edi + 4]
jge 0x503111
movaps xmm0, xmmword [esp + 0x50]
movaps xmm1, xmmword [esp + 0x60]
movaps xmmword [esp + 0x90], xmm1
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [esp + 8]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov eax, ebx
sub eax, ecx
sar eax, 5
mov esi, dword [esp + 0xc]
lea edi, [esi + esi]
inc edi
mov edx, eax
cmp edi, eax
jae 0x503284
add esi, esi
mov ecx, edx
mov dword [esp + 0x24], edx
add esi, 2
cmp esi, ecx
jae 0x503029
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
sub ecx, eax
sar ecx, 5
cmp ecx, esi
jbe 0x503733
cmp ecx, edi
jbe 0x503733
mov ebx, esi
shl ebx, 5
add ebx, eax
mov ecx, edi
shl ecx, 5
add ecx, eax
lea eax, [esp + 0xa0]
push eax
call fcn.004f8130
mov ecx, ebx
lea eax, [esp + 0x78]
push eax
call fcn.004f8130
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0xa0]
mov eax, dword [esp + 0x7c]
sbb eax, dword [esp + 0xa4]
cmovl edi, esi
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
sub eax, ebx
sar eax, 5
cmp eax, edi
lea ecx, [esp + 0x80]
jbe 0x503733
mov eax, edi
shl eax, 5
add ebx, eax
lea eax, [esp + 0xa0]
push eax
call fcn.004f8130
mov ecx, ebx
lea eax, [esp + 0x78]
push eax
call fcn.004f8130
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0xa0]
mov eax, dword [esp + 0x7c]
sbb eax, dword [esp + 0xa4]
jge 0x50328c
mov ecx, dword [esp + 0x28]
push dword [esp + 0xc]
push edi
call fcn.00503950
lea esi, [edi + edi]
mov eax, edi
add edi, edi
inc edi
mov edx, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
cmp edi, ecx
jb 0x502fc1
jmp 0x503290
xor ebx, ebx
dec ebx
jmp 0x502ead
cmp edx, 0xffffffff
mov edx, dword [esp + 8]
je 0x50332e
mov eax, esi
mov esi, esp
add ecx, 4
push dword [eax + 0xb0]
call fcn.004a1ae0
mov edx, dword [esp + 8]
mov esp, esi
jmp 0x50332e
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x502e59
movaps xmm0, xmmword [esp + 0x50]
movaps xmm1, xmmword [esp + 0x60]
movaps xmmword [esp + 0x90], xmm1
movaps xmmword [esp + 0x80], xmm0
xor esi, esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 8]
jne 0x503504
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movaps xmmword [esp + 0xb0], xmm1
movaps xmmword [esp + 0xa0], xmm0
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
mov edx, eax
sub edx, ecx
sar edx, 5
cmp edx, esi
je 0x503667
mov ebx, dword [esp + 0x1c]
jbe 0x503733
mov eax, esi
shl eax, 5
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movups xmmword [ecx + eax + 0x10], xmm1
movups xmmword [ecx + eax], xmm0
mov edx, dword [esp + 8]
jmp 0x5032f9
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edi, dword [edi]
movups xmm0, xmmword [esp + 0xf7]
movaps xmmword [esp + 0x80], xmm0
mov eax, esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], eax
mov esi, edx
sub esi, edi
sar esi, 5
cmp edx, edi
jne 0x5035d3
mov ebx, edx
mov eax, edx
sub ebx, edx
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movaps xmmword [esp + 0xb0], xmm1
movaps xmmword [esp + 0xa0], xmm0
sar ebx, 5
cmp ebx, esi
mov edi, dword [esp + 0x10]
je 0x5036b2
mov ebx, dword [esp + 0x1c]
jbe 0x503733
mov eax, esi
shl eax, 5
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movups xmmword [edx + eax + 0x10], xmm1
movups xmmword [edx + eax], xmm0
mov edx, dword [esp + 8]
mov ecx, dword [edx]
mov eax, dword [edi]
sub ecx, eax
sar ecx, 5
cmp ecx, esi
jbe 0x503733
mov ecx, esi
shl ecx, 5
mov eax, dword [eax + ecx + 0x18]
mov dword [eax + 0xb0], esi
mov eax, dword [edx]
sub eax, dword [edi]
sar eax, 5
cmp eax, esi
ja 0x50332e
jmp 0x503733
mov edi, dword [esp + 0x10]
mov eax, edx
jmp 0x5032a5
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ebx, dword [eax]
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
mov eax, ebx
sub eax, ecx
sar eax, 5
mov esi, edx
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movaps xmmword [esp + 0xb0], xmm1
movaps xmmword [esp + 0xa0], xmm0
cmp eax, esi
je 0x503595
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x1c]
jbe 0x503733
mov eax, esi
shl eax, 5
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movups xmmword [ecx + eax + 0x10], xmm1
movups xmmword [ecx + eax], xmm0
mov ecx, dword [edx]
mov eax, dword [edi]
sub ecx, eax
sar ecx, 5
cmp ecx, esi
jbe 0x503733
mov ecx, esi
shl ecx, 5
mov eax, dword [eax + ecx + 0x18]
mov dword [eax + 0xb0], esi
mov eax, dword [edx]
sub eax, dword [edi]
sar eax, 5
cmp eax, esi
jbe 0x503733
mov eax, dword [esp + 0x30]
mov esp, eax
mov eax, dword [edi]
mov ecx, dword [edx]
cmp eax, ecx
je 0x503473
mov edi, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 0xc]
mov dword [esp + 8], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x10], esi
mov esi, ebx
mov ebx, dword [eax + 0x14]
mov dword [esp + 0xc], ebx
mov ebx, esi
cmp ebx, 1
sete bl
mov bh, byte [esp + 0x23]
and bh, bl
cmp bh, 1
mov ebx, dword [esp + 0x18]
je 0x5034d4
cmp byte [esp + 0x17], 0
je 0x503382
cmp dword [esp + 0x2c], 1
jne 0x503382
inc dword [ebx + 0x14]
mov ebx, dword [esp + 0x48]
cmp dword [esp + 0x4c], ebx
je 0x503459
cmp eax, ecx
je 0x503459
xor edi, dword [esp + 0x44]
xor edx, dword [esp + 0x40]
or edx, edi
jne 0x5033c2
mov esi, dword [esp + 0x10]
xor esi, dword [esp + 0x38]
mov edx, dword [esp + 8]
xor edx, dword [esp + 0x3c]
or edx, esi
jne 0x5033c2
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x34]
je 0x503441
cmp eax, ecx
je 0x5034dc
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x14]
mov byte [esp + 0xc8], 1
movups xmmword [esp + 0xd0], xmm0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], eax
mov ebx, dword [esp + 0x18]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + 8]
cmp edi, 0x503940
jne 0x503494
mov ecx, dword [ebx + 0x1c]
sub esp, 0x2c
movsd xmm0, qword [esp + 0x114]
movsd qword [esp + 0x24], xmm0
movups xmm0, xmmword [esp + 0xf4]
movups xmm1, xmmword [esp + 0x104]
movups xmmword [esp + 0x14], xmm1
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call fcn.004ee890
mov ecx, dword [esp + 0x108]
xor ecx, ebp
call fcn.0050dc12
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x30
cmp eax, ecx
sete dl
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x4c], esi
sete dh
cmp dh, dl
jne 0x5033c2
jmp 0x503441
xor edi, edi
xor edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x503358
mov ecx, edi
call dword [section..00cfg]
sub esp, 0x2c
movsd xmm0, qword [esp + 0x114]
movsd qword [esp + 0x24], xmm0
movups xmm0, xmmword [esp + 0xf4]
movups xmm1, xmmword [esp + 0x104]
movups xmmword [esp + 0x14], xmm1
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, ebx
call edi
jmp 0x503441
dec dword [ebx + 0x14]
jmp 0x503371
mov byte [esp + 0xc8], 0
xorps xmm0, xmm0
movups xmmword [esp + 0xd0], xmm0
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], eax
jmp 0x5033f2
lea edi, [esp + 0x78]
lea edx, [esp + 0x80]
mov dword [esp + 0xc], ecx
lea esi, [ecx - 1]
mov dword [esp + 0x24], esi
shr esi, 1
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
sub eax, ecx
sar eax, 5
cmp eax, esi
jbe 0x503733
mov ebx, edx
mov eax, esi
shl eax, 5
add ecx, eax
lea eax, [esp + 0xa0]
push eax
call fcn.004f8130
mov ecx, ebx
push edi
call fcn.004f8130
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0xa0]
mov eax, dword [esp + 0x7c]
sbb eax, dword [esp + 0xa4]
jge 0x5036a1
mov ecx, dword [esp + 0x28]
push dword [esp + 0xc]
push esi
call fcn.00503950
mov ecx, esi
cmp dword [esp + 0x24], 1
mov edx, ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 8]
jbe 0x503141
jmp 0x50350f
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 0x10]
jae 0x5036ef
test ebx, ebx
je 0x503756
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movups xmmword [ebx + 0x10], xmm1
movups xmmword [ebx], xmm0
add ebx, 0x20
mov edx, dword [esp + 8]
mov dword [edx], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x5032f9
lea edx, [esp + 0xa0]
lea edi, [esi - 1]
mov dword [esp + 0xc], edi
shr edi, 1
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
sub eax, ecx
sar eax, 5
cmp eax, edi
jbe 0x503733
mov eax, edi
shl eax, 5
add ecx, eax
mov ebx, edx
push edx
call fcn.004f8130
lea ecx, [esp + 0x80]
lea eax, [esp + 0x50]
push eax
call fcn.004f8130
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0xa0]
mov eax, dword [esp + 0x54]
sbb eax, dword [esp + 0xa4]
jge 0x5036e8
mov ecx, dword [esp + 0x28]
push esi
push edi
call fcn.00503950
mov esi, edi
cmp dword [esp + 0xc], 1
mov edx, ebx
ja 0x5035da
mov eax, dword [esp + 8]
mov ebx, dword [eax]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x18]
jmp 0x5031f3
cmp eax, dword [ebx + 0x10]
jae 0x503707
test eax, eax
mov ebx, dword [esp + 0x1c]
je 0x503756
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
add eax, 0x20
mov edx, dword [esp + 8]
mov dword [edx], eax
jmp 0x5032f9
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 8]
jmp 0x503141
cmp eax, dword [ecx + 0x10]
mov ebx, dword [esp + 0x1c]
jae 0x50371f
test eax, eax
je 0x503756
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
add eax, 0x20
mov edx, dword [esp + 8]
mov dword [edx], eax
jmp 0x503250
mov edi, esi
jmp 0x50364e
mov ecx, edi
lea eax, [esp + 0xa0]
push eax
call fcn.004a19f0
mov edx, dword [esp + 8]
jmp 0x5035ca
mov ecx, edi
lea eax, [esp + 0xa0]
push eax
call fcn.004a19f0
mov ebx, dword [esp + 0x1c]
jmp 0x5031a0
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
call fcn.004a19f0
jmp 0x50324c
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x587
push str....._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.0053fff0
call fcn.00522750
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
jmp 0x503747