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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x698
call 0x50e83f
pop eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + 0xb4]
add esi, 8
push 4
pop edx
mov ecx, esi
call fcn.0050e673
mov ebx, eax
push 5
pop edx
mov ecx, esi
call fcn.0050e673
and dword [esp + 0x4c], 0
mov dword [esp + 0x50], 2
and dword [esp + 0x54], 0
test al, al
mov byte [esp + 0x1f], al
je 0x50e898
sub esp, 4
lea ecx, [esp + 0x50]
push 5
pop edx
call fcn.00504390
pop eax
test bl, bl
je 0x50e8ac
sub esp, 4
lea ecx, [esp + 0x50]
push 4
pop edx
call fcn.00504390
pop eax
cmp dword [esp + 0x54], 0
je 0x51019c
push 4
pop edx
mov ecx, 0xa8
call fcn.0048b62b
mov esi, eax
movsd xmm0, qword [esp + 0x4c]
mov eax, dword [esp + 0x54]
xor ecx, ecx
inc ecx
movsd qword [esp + 0x1e0], xmm0
mov dword [esp + 0x1e8], eax
call fcn.004fb834
mov dword [esp], eax
mov eax, dword [ebp + 0x1c]
and word [edx], 0
mov dword [esp + 4], edx
mov eax, dword [eax + 0xb4]
mov edi, dword [eax + 0x24]
mov ebx, dword [eax + 0x20]
mov dword [esp + 8], eax
mov ecx, edi
call fcn.004fb7ee
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
and dword [esp + 0x60], 0
cmp eax, edi
jae 0x50e93e
xor edx, edx
lea ecx, [esp + 0x58]
push edi
call fcn.004fbdf8
pop ecx
mov ecx, eax
call fcn.004388ae
lea eax, [esp + 0x58]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
jmp 0x50e944
xor eax, eax
test edi, edi
je 0x50e952
mov ecx, dword [ebx]
add ebx, 4
mov ecx, dword [ecx]
mov dword [edx + eax*4], ecx
inc eax
dec edi
jne 0x50e944
lea edi, [esp + 0x58]
mov dword [esp + 0x258], eax
mov eax, dword [esp + 8]
movsd xmm0, qword [edi]
movsd qword [esp + 0x250], xmm0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x4c]
call fcn.0050e639
push eax
push edi
call dword [edx + 0x18]
add esp, 8
push 6
pop eax
mov dword [esi], eax
movsd xmm0, qword [esp + 0x1e0]
movsd qword [esi + 4], xmm0
mov ecx, dword [esp + 0x1e8]
mov dword [esi + 0xc], ecx
movsd xmm0, qword [esp + 0x3ac]
movsd qword [esi + 0x10], xmm0
mov ecx, dword [esp + 0x3b4]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp]
and dword [esi + 0x1c], 0
xor edx, edx
inc edx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 4]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
movsd xmm0, qword [esp + 0x3f0]
movsd qword [esi + 0x2c], xmm0
mov ecx, dword [esp + 0x3f8]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
movsd xmm0, qword [esp + 0x250]
movsd qword [esi + 0x3c], xmm0
mov ecx, dword [esp + 0x258]
mov dword [esi + 0x44], ecx
movsd xmm0, qword [esp + 0x308]
movsd qword [esi + 0x48], xmm0
mov ecx, dword [esp + 0x310]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], 2
mov ecx, dword [edi + 8]
mov dword [esi + 0x60], ecx
movsd xmm0, qword [edi]
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [esp + 0x138]
movsd qword [esi + 0x64], xmm0
mov ecx, dword [esp + 0x140]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], 0xb
mov dword [esi + 0x8c], 0xc
and dword [esi + 0x90], 0
mov dword [esi + 0x94], 4
and dword [esi + 0x98], 0
and dword [esi + 0x9c], 0
mov dword [esi + 0xa0], edx
and dword [esi + 0xa4], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x1c]
cmp byte [eax + 0xb8], 0
jne 0x50eb53
mov eax, dword [eax + 0xb4]
cmp byte [eax + 0x60], 0
je 0x50eb53
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc4]
test eax, eax
je 0x50eae6
cmp byte [edx + eax - 1], 0x2e
jne 0x50eae6
dec eax
mov ecx, edx
mov edx, eax
call fcn.00504c98
test eax, eax
je 0x5101c2
mov esi, edx
lea ecx, [esp + 0x58]
mov edx, eax
push esi
jmp 0x50eaeb
lea ecx, [esp + 0x58]
push eax
call fcn.00504c5c
pop eax
lea esi, [esp + 0x58]
mov eax, dword [esi + 8]
movsd xmm0, qword [esi]
mov dword [esp + 0x140], eax
movsd qword [esp + 0x138], xmm0
push 0x14
pop ecx
push 4
pop edx
call fcn.0048b62b
and dword [eax], 0
mov edx, esi
movsd xmm0, qword [esp + 0x138]
movsd qword [eax + 4], xmm0
mov ecx, dword [esp + 0x140]
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov byte [eax + 0x10], 0
inc ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x24]
mov dword [esi], 3
call fcn.00504340
mov esi, dword [ebp + 8]
cmp byte [ebp + 0x10], 0
je 0x50eb6f
lea edx, [esp + 0x58]
lea ecx, [esp + 0x24]
mov dword [edx], 0xd
call fcn.00504340
mov eax, dword [esi]
test eax, eax
je 0x50ebdc
mov eax, dword [eax]
lea ecx, [esi + 0x40]
mov dword [esp], eax
call fcn.004f15b0
mov esi, edx
mov ecx, edx
xor edx, edx
mov edi, eax
call fcn.004f0419
mov dword [esp + 4], eax
mov ebx, edx
push esi
push edi
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0x10
pop ecx
push 4
pop edx
call fcn.0048b62b
mov ecx, dword [esp + 4]
lea edx, [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp]
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
xor ecx, ecx
inc ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x24]
mov dword [edx], 7
call fcn.00504340
cmp dword [esp + 0x3c], 0
je 0x50ec1c
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
call fcn.00504e7d
test eax, eax
je 0x50ec1c
mov edx, dword [eax + 4]
lea esi, [esp + 0x5c]
mov ecx, esi
push dword [eax + 8]
call fcn.004fb7b2
pop eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x58]
mov dword [esi - 4], 0xa
call fcn.00504340
cmp byte [esp + 0x1f], 0
je 0x50ec4f
push 2
pop ecx
xor esi, esi
inc esi
mov edx, esi
call fcn.0048b62b
lea edx, [esp + 0x58]
lea ecx, [esp + 0x24]
mov byte [eax], 1
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov dword [edx + 0xc], esi
mov dword [edx], 8
call fcn.00504340
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0xb4]
mov esi, dword [eax + 0x30]
mov dword [esp + 0x30], eax
test esi, esi
je 0x50ed61
mov eax, dword [esp + 0x30]
mov ecx, esi
mov ebx, dword [eax + 0x2c]
call fcn.0043868e
lea edi, [esp + 0x58]
mov dword [edi], eax
mov dword [edi + 4], edx
and dword [edi + 8], 0
mov ecx, edi
mov edx, esi
call fcn.004fbc35
mov edx, dword [edi + 4]
mov edi, dword [edi + 8]
add ebx, 8
shl edi, 3
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add ebx, 0xc
mov dword [edx + edi], eax
mov dword [edx + edi + 4], ecx
add edi, 8
dec esi
jne 0x50ec97
lea eax, [esp + 0x58]
mov dword [esp + 0x14], edx
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x138]
and dword [eax], 0
mov dword [eax + 4], 4
and dword [eax + 8], 0
mov eax, edx
test edi, edi
je 0x50ed29
lea ecx, [eax + 8]
mov ebx, dword [eax + 4]
xor edx, edx
mov dword [esp], ecx
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov ecx, ebx
call fcn.004f0419
mov dword [esp + 8], eax
mov esi, edx
push ebx
push dword [esp + 8]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
lea ecx, [esp + 0x138]
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebx
call fcn.00503f70
mov eax, dword [esp]
add edi, 0xfffffff8
jmp 0x50ecd1
mov eax, dword [esp + 0x140]
movsd xmm0, qword [esp + 0x138]
lea edx, [esp + 0x58]
lea ecx, [esp + 0x24]
mov dword [edx + 0xc], eax
movsd qword [edx + 4], xmm0
mov dword [edx], 5
call fcn.00504340
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
call fcn.004fe49d
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x24]
sub ecx, ebx
cmp ecx, edi
jae 0x50ed9a
lea esi, [esp + 0x24]
mov edx, ebx
mov ecx, esi
push edi
call fcn.004fdcad
pop ecx
mov ecx, eax
call fcn.004388ae
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
jmp 0x50eda6
test edi, edi
je 0x50f73f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
xor esi, esi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x40]
imul eax, esi, 0x1c
lea edi, [ecx + eax]
mov eax, dword [ecx + eax]
mov eax, dword [eax*4 + 0x5101fc]
add eax, dword [esp + 0x44]
jmp eax
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x30]
mov eax, ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x2c], eax
cmp dword [edx + 0x88], 0x3b9aca00
lea ecx, [ecx + 8]
je 0x50f7da
mov esi, dword [ebp + 0x1c]
mov edx, dword [esi + 0x28]
lea eax, [esi + 0x20]
lea edi, [esi + 0x30]
cmp edx, 0x80000000
cmove eax, edi
mov esi, dword [eax + 0x10]
test esi, esi
je 0x50f7da
cmp edx, 0x80000000
jne 0x50fdfb
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], edi
mov esi, dword [eax + 0x80]
mov edi, dword [eax + 0x84]
push 5
pop edx
call fcn.0050e673
mov cl, 1
test al, al
mov dword [esp], ecx
je 0x50f80f
test ebx, ebx
je 0x50f80f
cmp ebx, 1
jne 0x51003e
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [edx + 0x60]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x58]
cmp al, byte [ecx + 0x58]
mov eax, edx
mov cl, 1
mov dword [esp], ecx
jne 0x50f812
jmp 0x51004b
push 5
pop edx
call fcn.0050e673
mov cl, 1
test al, al
mov dword [esp], ecx
jne 0x50f7f5
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x3c], 2
jne 0x50f80f
lea edx, [esp + 0x58]
mov dword [edx + 4], 0x80000000
lea ecx, [esp + 0x24]
mov dword [edx], 4
call fcn.00504340
mov eax, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x50f86c
mov edi, dword [esp + 0x28]
lea esi, [ebx*4]
push 2
pop ecx
mov edx, esi
call fcn.004388c9
test eax, eax
je 0x510188
mov esi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebx
add esi, 2
mov ecx, edi
call fcn.004fb97a
mov word [esi - 2], ax
mov word [esi], dx
add edi, 0x1c
add esi, 4
dec ebx
jne 0x50f844
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0xc]
mov dword [esp + 4], ebx
jmp 0x50f877
push 2
pop esi
mov dword [esp + 4], 0
mov ecx, dword [eax + 0xcc]
mov edx, dword [eax + 0xd0]
mov edi, eax
call fcn.004fc288
mov eax, dword [esp + 4]
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd0], esi
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0xb4]
mov edi, dword [eax + 0x18]
test edi, edi
je 0x50f8e8
mov ebx, dword [eax + 0x14]
lea esi, [edi*4]
push 2
pop ecx
mov edx, esi
call fcn.004388c9
test eax, eax
je 0x510188
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
and dword [esp + 0x60], 0
xor ecx, ecx
mov edx, dword [ebx + ecx*8 + 4]
mov edx, dword [edx]
mov dword [eax + ecx*4], edx
inc ecx
cmp edi, ecx
jne 0x50f8d8
jmp 0x50f8fb
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 2
and dword [esp + 0x60], 0
xor edi, edi
lea eax, [esp + 0x58]
lea ebx, [esp + 0x2f8]
movsd xmm0, qword [eax]
mov dword [ebx + 8], edi
movsd qword [ebx], xmm0
sub esp, 4
mov ecx, ebx
mov edx, 0xba
call fcn.0050459a
pop eax
mov eax, dword [ebp + 0x1c]
movsd xmm1, qword [eax + 8]
movsd xmm0, qword [eax]
movsd xmm2, qword [eax + 0x10]
lea esi, [eax + 0x90]
movsd qword [esp + 0x140], xmm1
movsd xmm1, qword [eax + 0x18]
movsd qword [esp + 0x138], xmm0
movsd qword [esp + 0x148], xmm2
movsd qword [esp + 0x150], xmm1
push 9
pop ecx
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push 2
pop ecx
xor esi, esi
inc esi
mov edx, esi
call fcn.0048b62b
mov byte [eax], 0
lea edi, [esp + 0x228]
cmp byte [esp], 0
mov ecx, dword [esp + 0x2c]
movsd xmm0, qword [esp + 0x24]
movsd xmm1, qword [ebx]
movsd xmm2, qword [esp + 0x150]
mov dword [edi - 0x28], ecx
movsd qword [edi - 0x30], xmm0
mov byte [edi + 0x24], 1
mov ecx, dword [ebx + 8]
movsd qword [edi - 0x48], xmm1
movsd xmm1, qword [esp + 0x148]
lea ebx, [esp + 0x58]
mov dword [edi - 0x40], ecx
mov dword [edi - 0x3c], esi
mov dword [edi - 0x38], eax
mov dword [edi - 0x34], esi
mov word [edi - 0x24], 4
movsd qword [edi - 8], xmm2
movsd qword [edi - 0x10], xmm1
movsd xmm2, qword [esp + 0x138]
movsd xmm1, qword [esp + 0x140]
movsd qword [edi - 0x18], xmm1
movsd qword [edi - 0x20], xmm2
push 9
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
je 0x50fa0b
mov dword [esp + 8], 0
jmp 0x50fc56
mov eax, dword [esp + 8]
lea esi, [esp + 0x1e0]
lea ecx, [esp + 0x138]
mov edx, esi
mov edi, dword [eax + 0x30]
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call fcn.004ff517
mov eax, 0x80000000
xor eax, dword [esi]
cmp eax, 0x14
ja 0x50fa3e
cmp eax, 1
jne 0x50fa96
mov eax, dword [esp + 0x200]
sub eax, 1
jb 0x50fa96
imul eax, eax, 0x1c
add eax, dword [esp + 0x1fc]
cmp dword [eax], 9
jne 0x50fa96
and dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
and dword [esp + 0x60], 0
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
push ebx
call fcn.00501f8c
pop eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
call fcn.00563c9c
mov eax, dword [esp + 0x140]
cmp eax, esi
jae 0x50fa9f
jmp 0x50faa1
mov eax, dword [esp + 0x140]
xor esi, esi
sub eax, esi
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x138]
mov ebx, dword [esp + 0x13c]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x3f0]
push eax
mov dword [esp + 0x10], ebx
push ebx
push dword [esp + 8]
push dword [esi + 8]
call 0x510244
add esp, 0x10
mov eax, dword [esp + 8]
lea ebx, [esp + 0x58]
mov edx, edi
mov ecx, ebx
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.005102e4
pop eax
pop ecx
mov esi, dword [ebx + 0xa0]
lea ecx, [esp + 0x308]
mov edx, dword [esi + 0xc]
push 0
push 0x6c4590
call fcn.004f15cb
pop eax
pop ecx
lea ecx, [esp + 0x30c]
mov esi, dword [esi + 0xc]
mov eax, dword [ecx - 4]
mov edx, dword [eax + 0x48]
push 0x697a3c
call fcn.004fd437
pop ecx
mov edi, edx
lea ecx, [esp + 0x138]
mov edx, ebx
push edi
push eax
push 0
push esi
call fcn.005159ce
add esp, 0x10
mov edx, dword [ebx + 0xa0]
lea eax, [esp + 0x3f0]
lea ecx, [esp + 0x308]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.00514dcc
pop eax
pop ecx
mov eax, 0x80000000
xor eax, dword [esp + 0x1e0]
cmp eax, 0x14
ja 0x50fb7a
cmp eax, 1
jne 0x50fbe6
lea ecx, [esp + 0x308]
call fcn.004fd712
mov esi, eax
mov eax, dword [esp + 0x200]
sub eax, 1
jb 0x50fbe6
imul ebx, eax, 0x1c
add ebx, dword [esp + 0x1fc]
cmp dword [ebx], 9
jne 0x50fbe6
mov edi, edx
mov ecx, edx
xor edx, edx
call fcn.004f0419
mov dword [esp], eax
push edi
push esi
mov dword [esp + 0xc], edx
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebx + 0x18], 0
je 0x51016a
mov esi, dword [ebx + 0x14]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.00563c9c
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov esi, 0xa0
lea edi, [esp + 0x510]
push esi
lea eax, [esp + 0x5c]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ebx, [esp + 0x5c]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0x9c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00563c9c
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x30]
mov dword [esp + 8], eax
push esi
push edi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, 0xa4
lea ecx, [esp + 0x250]
push eax
lea eax, [esp + 0x5c]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [ebp + 0x20]
push 0x1c
pop ecx
lea edx, [esp + 0x58]
lea esi, [esp + 0x1e0]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x3f0]
mov ecx, esi
call fcn.005097c8
xor eax, eax
cmp dword [esp + 0x3c], 0
setne al
lea eax, [eax + eax + 2]
mov word [esi + 0x7c], ax
je 0x50fc9d
mov eax, dword [ebp + 0x1c]
mov edx, ebx
lea ecx, [eax + 0xd9]
call fcn.00510358
mov ecx, dword [esp + 0x34]
lea esi, [esp + 0x3f0]
mov edx, esi
call fcn.0051038d
mov ecx, ebx
mov edx, esi
push 0
call fcn.00509d28
pop eax
cmp dword [esp + 8], 0
je 0x50fdd4
lea eax, [esp + 0x250]
lea ecx, [esp + 0x138]
push 0xa4
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea esi, [esp + 0x13c]
push 0xa0
push esi
lea eax, [esp + 0x60]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 4]
mov dword [esp + 0xfc], eax
mov eax, dword [ebp + 0x24]
movzx eax, byte [eax + 0xc]
dec eax
cmp eax, 2
jae 0x50fde0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx + 0xb4]
lea esi, [ebx + 0xd9]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
call fcn.0050e639
mov edi, edx
mov edx, dword [ebp + 0x20]
mov ecx, esi
mov dword [esp], eax
call fcn.00510358
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x3ac]
mov edx, dword [eax + 4]
push 0
push 0x6c4590
mov esi, dword [esp + 0x10]
push dword [esi + 0xc]
push dword [eax + 8]
call 0x510244
add esp, 0x10
lea ecx, [esp + 0x3b0]
mov eax, dword [ecx - 4]
mov edx, dword [eax + 0x48]
push 0x697a3c
call fcn.004fd437
pop ecx
mov esi, edx
lea ecx, [esp + 0x308]
lea edx, [esp + 0x58]
push ebx
mov ebx, dword [ebp + 0x20]
push edi
push dword [esp + 8]
push esi
mov esi, edx
push eax
push 1
call fcn.00515aef
add esp, 0x18
cmp byte [ebx + 0xac], 0
mov ecx, dword [esi + 0xa0]
lea edx, [esp + 0x308]
je 0x50fe51
push ebx
call fcn.0051277b
jmp 0x50fe57
mov dword [esp], 0
jmp 0x50fea7
lea eax, [esp + 0x308]
push 0xa0
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x50fe8a
mov edi, dword [eax + 0xc]
push 4
pop edx
call fcn.0050e673
mov cl, 1
test al, al
mov dword [esp], ecx
je 0x50f80f
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x3c], 2
jne 0x50f80f
mov ecx, esi
xor edx, edx
call fcn.004f0419
mov dword [esp + 4], eax
mov ebx, edx
push esi
push edi
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
lea edx, [esp + 0x58]
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], esi
jmp 0x50f800
push ebx
call fcn.005127e8
pop eax
mov byte [ebx + 0xb0], 1
push 0xa0
push esi
lea eax, [esp + 0x310]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x308]
lea ecx, [esp + 0x470]
push 0xa0
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x3c], 0
lea edi, [esp + 0x5b0]
setne bl
push 0xe0
mov esi, dword [ebp + 0x1c]
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov al, byte [esp + 0x1f]
xor al, 1
or al, bl
jne 0x50ff97
mov edi, 0xe0
push edi
push esi
lea ebx, [esp + 0x60]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 8
pop edx
mov ecx, 0x258
call fcn.0048b62b
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x470]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [esi + 0xf8]
movsd qword [esi + 0xe8], xmm0
movsd qword [esi + 0xf0], xmm1
push 0xa0
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
mov dword [esi + 0x198], eax
mov eax, dword [esp + 4]
mov dword [esi + 0x19c], eax
lea eax, [esi + 0x1a0]
push 0xa8
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, 0x699298
movsd xmm0, qword [eax]
movsd qword [esi + 0x248], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 0x250], eax
jmp 0x510034
push 8
pop edx
mov ecx, 0x248
call fcn.0048b62b
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push 0xe0
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x470]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [esi + 0xf8]
movsd qword [esi + 0xe8], xmm0
movsd qword [esi + 0xf0], xmm1
push 0xa0
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
mov dword [esi + 0x198], eax
mov eax, dword [esp + 4]
mov dword [esi + 0x19c], eax
mov eax, esi
add eax, 0x1a0
push 0xa8
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.004fc69c
mov edx, 0x699280
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [esp], 0
mov ebx, dword [eax + 0x60]
xor eax, eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
inc eax
cmp byte [esp], 0
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], ebx
mov dword [edx], eax
mov dword [edx + 4], ebx
jne 0x5100a0
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x5100a0
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x61], 0
je 0x5100a0
mov ecx, dword [ebp + 0x24]
cmp byte [ecx + 0xc], 0
jne 0x5101de
mov byte [ecx + 0xc], 1
mov dword [ecx + 8], eax
lea edx, [esp + 0x58]
lea ecx, [esp + 0x24]
mov dword [edx], 0x10
call fcn.00504340
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov dword [esp], 0
sub esi, dword [eax + 0x30]
sbb edi, dword [eax + 0x34]
cmovb esi, ecx
imul ecx, esi, 0x3e8
mov esi, eax
add ecx, dword [eax + 0x64]
mov eax, dword [ebx + 0xc]
xor edx, edx
inc edx
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x48]
mov dword [esp + 4], ecx
call fcn.004f0419
mov edi, dword [esi + 0x40]
mov ebx, dword [esi + 0x3c]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 0x14], eax
mov ecx, edi
call fcn.004f0419
mov dword [esp + 0x40], eax
mov esi, edx
push edi
push ebx
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0x10
pop ecx
push 4
pop edx
call fcn.0048b62b
mov ebx, eax
mov eax, dword [esp + 0x40]
mov dword [ebx], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
push 0xc
pop ecx
push 4
pop edx
call fcn.0048b62b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
xor ecx, ecx
inc ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], ecx
lea ecx, [esp + 0x24]
mov dword [edx], 9
call fcn.00504340
jmp 0x50f80f
xor ecx, ecx
xor edx, edx
push 0x697eb8
call fcn.0043a050
call fcn.004341f0
push 4
pop ecx
mov edx, dword [esp]
call fcn.00434230
push 2
pop ecx
mov edx, esi
call fcn.00434230
push 4
pop ecx
mov edx, edi
call fcn.00434230
push 0x30
pop edx
mov ecx, str.assertion_failed:__supported_versions.is_empty__e
push 0x6992e0
call fcn.0043a9e0
xor ecx, ecx
mov edx, esi
inc ecx
call fcn.00434230
push 4
pop ecx
mov edx, ebx
call fcn.00434230
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x697e84
push 0x69775c
lea eax, [esp + 0x60]
push eax
call fcn.0043f6f0
and dword [esp + 0x58], 0
add ecx, 0xc
mov edx, 0x697b48
push 0x6990e4
lea eax, [esp + 0x5c]
push eax
call fcn.004fd2a3
nop
mov eax, dword [0x9980000]
add byte [eax], al
adc eax, dword [esi]
add byte [eax], al
imul eax, dword [esi], 0
add byte [edi + 7], bh
add byte [eax], al
lock or dword [eax], eax
add byte [edi - 0x63fffff6], dl
pop es
add byte [eax], al
out 0xa, eax
add byte [eax], al
pop esi
or byte [eax], al
add byte [edx], dh
or eax, dword [eax]
add byte [esi], al
push es
add byte [eax], al
sbb dword [ecx], ecx
add byte [eax], al
dec esp
or eax, dword [eax]
add ah, bl
add eax, 0x97b0000
add byte [eax], al
stc
add eax, 0xb560000
add byte [eax], al
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
lea ebx, [esp + 0x90]
mov dword [esp + 0xc], ecx
movaps xmmword [ebx - 0x10], xmm0
movaps xmmword [ebx - 0x20], xmm0
movaps xmmword [ebx - 0x30], xmm0
movaps xmmword [ebx - 0x40], xmm0
movaps xmmword [ebx - 0x50], xmm0
movaps xmmword [ebx - 0x60], xmm0
movaps xmmword [ebx - 0x70], xmm0
movaps xmmword [ebx - 0x80], xmm0
push 0x10
pop ecx
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x14]
lea esi, [esp + 0x10]
and dword [ebx + 0x44], 0
and dword [ebx + 0x40], 0
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 8]
and dword [ebx + 0x50], 0
mov ecx, esi
push eax
call fcn.004efc0b
pop eax
mov edx, dword [ebp + 0x10]
mov ecx, esi
push edi
call fcn.004efc0b
pop eax
lea edi, [esp + 0xf0]
push 0xd8
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.004efdb1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret