Function at 0x502d00
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 0x503004
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 0x502fd2
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 0x503671
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 0x502fda
lea eax, [ecx + 4]
mov dword [esp + 0x28], eax
cmp edx, 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
je 0x5030c9
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 0x503653
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 0x503653
add ebx, eax
lea edi, [esp + 0xa0]
lea ecx, [esp + 0x50]
push edi
call fcn.004f8050
lea esi, [esp + 0x80]
mov ecx, ebx
push esi
call fcn.004f8050
mov eax, dword [esi]
cmp eax, dword [edi]
mov eax, dword [esi + 4]
sbb eax, dword [edi + 4]
jge 0x503031
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 0x5031a4
add esi, esi
mov ecx, edx
mov dword [esp + 0x24], edx
add esi, 2
cmp esi, ecx
jae 0x502f49
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 0x503653
cmp ecx, edi
jbe 0x503653
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.004f8050
mov ecx, ebx
lea eax, [esp + 0x78]
push eax
call fcn.004f8050
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 0x503653
mov eax, edi
shl eax, 5
add ebx, eax
lea eax, [esp + 0xa0]
push eax
call fcn.004f8050
mov ecx, ebx
lea eax, [esp + 0x78]
push eax
call fcn.004f8050
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0xa0]
mov eax, dword [esp + 0x7c]
sbb eax, dword [esp + 0xa4]
jge 0x5031ac
mov ecx, dword [esp + 0x28]
push dword [esp + 0xc]
push edi
call fcn.00503870
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 0x502ee1
jmp 0x5031b0
xor ebx, ebx
dec ebx
jmp 0x502dcd
cmp edx, 0xffffffff
mov edx, dword [esp + 8]
je 0x50324e
mov eax, esi
mov esi, esp
add ecx, 4
push dword [eax + 0xb0]
call fcn.004a1a00
mov edx, dword [esp + 8]
mov esp, esi
jmp 0x50324e
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 0x502d79
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 0x503424
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 0x503587
mov ebx, dword [esp + 0x1c]
jbe 0x503653
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 0x503219
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 0x5034f3
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 0x5035d2
mov ebx, dword [esp + 0x1c]
jbe 0x503653
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 0x503653
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 0x50324e
jmp 0x503653
mov edi, dword [esp + 0x10]
mov eax, edx
jmp 0x5031c5
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 0x5034b5
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x1c]
jbe 0x503653
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 0x503653
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 0x503653
mov eax, dword [esp + 0x30]
mov esp, eax
mov eax, dword [edi]
mov ecx, dword [edx]
cmp eax, ecx
je 0x503393
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 0x5033f4
cmp byte [esp + 0x17], 0
je 0x5032a2
cmp dword [esp + 0x2c], 1
jne 0x5032a2
inc dword [ebx + 0x14]
mov ebx, dword [esp + 0x48]
cmp dword [esp + 0x4c], ebx
je 0x503379
cmp eax, ecx
je 0x503379
xor edi, dword [esp + 0x44]
xor edx, dword [esp + 0x40]
or edx, edi
jne 0x5032e2
mov esi, dword [esp + 0x10]
xor esi, dword [esp + 0x38]
mov edx, dword [esp + 8]
xor edx, dword [esp + 0x3c]
or edx, esi
jne 0x5032e2
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x34]
je 0x503361
cmp eax, ecx
je 0x5033fc
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, 0x503860
jne 0x5033b4
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.004ee7b0
mov ecx, dword [esp + 0x108]
xor ecx, ebp
call fcn.0050db32
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 0x5032e2
jmp 0x503361
xor edi, edi
xor edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x503278
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 0x503361
dec dword [ebx + 0x14]
jmp 0x503291
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 0x503312
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 0x503653
mov ebx, edx
mov eax, esi
shl eax, 5
add ecx, eax
lea eax, [esp + 0xa0]
push eax
call fcn.004f8050
mov ecx, ebx
push edi
call fcn.004f8050
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0xa0]
mov eax, dword [esp + 0x7c]
sbb eax, dword [esp + 0xa4]
jge 0x5035c1
mov ecx, dword [esp + 0x28]
push dword [esp + 0xc]
push esi
call fcn.00503870
mov ecx, esi
cmp dword [esp + 0x24], 1
mov edx, ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 8]
jbe 0x503061
jmp 0x50342f
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 0x10]
jae 0x50360f
test ebx, ebx
je 0x503676
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 0x503219
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 0x503653
mov eax, edi
shl eax, 5
add ecx, eax
mov ebx, edx
push edx
call fcn.004f8050
lea ecx, [esp + 0x80]
lea eax, [esp + 0x50]
push eax
call fcn.004f8050
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0xa0]
mov eax, dword [esp + 0x54]
sbb eax, dword [esp + 0xa4]
jge 0x503608
mov ecx, dword [esp + 0x28]
push esi
push edi
call fcn.00503870
mov esi, edi
cmp dword [esp + 0xc], 1
mov edx, ebx
ja 0x5034fa
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 0x503113
cmp eax, dword [ebx + 0x10]
jae 0x503627
test eax, eax
mov ebx, dword [esp + 0x1c]
je 0x503676
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 0x503219
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 8]
jmp 0x503061
cmp eax, dword [ecx + 0x10]
mov ebx, dword [esp + 0x1c]
jae 0x50363f
test eax, eax
je 0x503676
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 0x503170
mov edi, esi
jmp 0x50356e
mov ecx, edi
lea eax, [esp + 0xa0]
push eax
call fcn.004a1910
mov edx, dword [esp + 8]
jmp 0x5034ea
mov ecx, edi
lea eax, [esp + 0xa0]
push eax
call fcn.004a1910
mov ebx, dword [esp + 0x1c]
jmp 0x5030c0
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
call fcn.004a1910
jmp 0x50316c
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.0053ff10
call fcn.00522670
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
jmp 0x503667