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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push dword [0x6083bc]
call fcn.004fac60
mov eax, dword [0x6083b8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [0x6083d0], 0
setne al
movzx eax, al
push eax
push dword [0x6083f0]
push dword [0x6083bc]
push ecx
call fcn.004faa40
mov eax, dword [0x6085b8]
lea ecx, [eax + eax*2]
mov eax, dword [0x6083b8]
cmp dword [0x6083c0], 0
mov dword [ecx*8 + 0x6085c0], eax
mov al, byte [0x6083bc]
mov edx, dword [0x6083d0]
mov byte [ecx*8 + 0x6085cc], al
setne al
cmp dword [0x6083c4], 0
mov byte [ecx*8 + 0x6085c4], al
setne al
cmp dword [0x6083c8], 0
mov byte [ecx*8 + 0x6085c5], al
setne al
cmp dword [0x6083cc], 0
mov byte [ecx*8 + 0x6085c6], al
setne al
test edx, edx
mov byte [ecx*8 + 0x6085c7], al
setne al
cmp dword [0x6083d4], 0
mov byte [ecx*8 + 0x6085c8], al
setne al
cmp dword [0x6083d8], 0
mov byte [ecx*8 + 0x6085c9], al
setne al
cmp dword [0x6083e0], 0
mov byte [ecx*8 + 0x6085ca], al
mov al, byte [0x6083dc]
mov byte [ecx*8 + 0x6085cd], al
setne al
cmp dword [0x6083f8], 0
mov byte [ecx*8 + 0x6085cb], al
mov al, byte [0x6083e4]
mov byte [ecx*8 + 0x6085ce], al
mov al, byte [0x6083f0]
mov byte [ecx*8 + 0x6085cf], al
mov al, byte [0x6083f4]
mov byte [ecx*8 + 0x6085d0], al
setne al
cmp dword [0x6083fc], 0
mov byte [ecx*8 + 0x6085d4], al
setne al
mov byte [ecx*8 + 0x6085d5], al
mov al, byte [0x608400]
mov byte [ecx*8 + 0x6085d1], al
mov eax, dword [0x6085b8]
inc eax
mov dword [0x6085b8], eax
cmp eax, 0x40
jne 0x51233d
mov dword [0x6085b8], 0
cmp byte [0x606f67], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
je 0x512559
mov ecx, dword [0x6002c0]
xor edi, edi
mov eax, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], edi
test eax, eax
je 0x51238d
test byte [eax + 0x14], 1
je 0x51238d
nop dword [eax]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x51238d
test byte [eax + 0x14], 1
jne 0x512380
mov edx, dword [0x607238]
mov ebx, dword [0x6002c4]
cmp eax, edx
jne 0x5123a7
mov esi, dword [0x60023c]
sub esi, ebx
jmp 0x5123fd
xor esi, esi
test ecx, ecx
je 0x5123fd
test byte [ecx + 0x14], 1
je 0x5123c0
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x5123fd
test byte [ecx + 0x14], 1
jne 0x5123b3
test ecx, ecx
je 0x5123fd
cmp ecx, edx
je 0x5123f3
mov eax, dword [ecx]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
add esi, eax
test ecx, ecx
je 0x5123fd
test byte [ecx + 0x14], 1
je 0x5123ed
nop dword [eax]
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x5123fd
test byte [ecx + 0x14], 1
jne 0x5123e0
test ecx, ecx
jne 0x5123c4
jmp 0x5123fd
mov eax, dword [0x60023c]
sub eax, dword [edx + 0x10]
add esi, eax
mov ecx, dword [0x600348]
mov eax, ecx
test eax, eax
je 0x51241d
test byte [eax + 0x14], 1
je 0x51241d
nop
mov eax, dword [eax + 0x18]
test eax, eax
je 0x51241d
test byte [eax + 0x14], 1
jne 0x512410
cmp eax, edx
jne 0x512429
sub ebx, dword [0x60034c]
jmp 0x51247c
xor edi, edi
test ecx, ecx
je 0x512478
test byte [ecx + 0x14], 1
je 0x512442
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x512478
test byte [ecx + 0x14], 1
jne 0x512435
test ecx, ecx
je 0x512478
cmp ecx, edx
je 0x512473
mov eax, dword [ecx]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
add edi, eax
test ecx, ecx
je 0x512478
test byte [ecx + 0x14], 1
je 0x51246d
nop
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x512478
test byte [ecx + 0x14], 1
jne 0x512460
test ecx, ecx
jne 0x512446
jmp 0x512478
sub ebx, dword [edx + 0x10]
add edi, ebx
mov ebx, edi
xor edi, edi
cmp byte [0x606ca7], 0
je 0x512492
mov ecx, dword [0x608560]
mov eax, dword [0x608564]
jmp 0x5124a0
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push 0
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
call fcn.004ff940
cmp dword [0x6083bc], 2
jne 0x51253f
cmp dword [0x6083d0], 0
jne 0x51253f
movd xmm1, esi
mov eax, esi
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movd xmm0, ebx
addsd xmm1, qword [eax*8 + 0x5cc8a0]
cvtdq2pd xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5cc8a0]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
addsd xmm0, xmm1
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
divsd xmm1, xmm0
movsd qword [ebp - 0x10], xmm1
call fcn.0050ea90
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
mulsd xmm0, qword [ebp - 0x10]
cvttsd2si edi, xmm0
movsd xmm0, qword [0x5cde60]
subsd xmm0, qword [ebp - 0x10]
mulsd xmm0, qword [ebp - 0x20]
cvttsd2si eax, xmm0
mov dword [ebp - 0xc], eax
push edi
push esi
push 2
call fcn.0050f700
push dword [ebp - 0xc]
push ebx
push 3
call fcn.0050f700
mov edx, dword [0x6083d0]
test edx, edx
jne 0x51258d
mov eax, dword [0x6093f4]
mov eax, dword [0x6083d0]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x51258d
mov ebx, dword [0x6083bc]
mov eax, 0x608c18
cmp ebx, 2
mov edi, 0x608c98
cmovne edi, eax
mov eax, dword [0x6083b8]
mov dword [edi], eax
jmp 0x5125aa
mov edi, dword [0x609284]
mov eax, dword [0x6083d0]
mov ebx, dword [0x6083bc]
shl edi, 7
add edi, 0x608d50
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
xor esi, esi
xor ebx, ebx
call fcn.0050ffe0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x14], 4
cmove edx, dword [ebp - 0x14]
test edx, edx
js 0x51261e
lea eax, [edx + 1]
cmp eax, 2
jl 0x5126a4
lea ecx, [edx + 1]
mov eax, 0x607080
shr ecx, 1
lea ebx, [ecx + ecx]
mov dword [ebp - 0x24], ebx
mov ebx, esi
add esi, dword [eax - 0x60]
lea eax, [eax + 0xc0]
add ebx, dword [eax - 0xc0]
sub ecx, 1
jne 0x5125f1
mov eax, dword [ebp - 0x24]
cmp eax, edx
jle 0x5126a6
lea eax, [esi + ebx]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc], 0
mov dword [edi + 8], eax
mov eax, dword [0x6083a8]
mov dword [edi + 0xc], eax
mov eax, dword [0x60723c]
mov eax, dword [eax + 0x24]
mov dword [edi + 0x10], eax
jne 0x5126b7
lea eax, [ecx + ecx*2]
mov ecx, dword [0x608c00]
shl eax, 5
mov edx, dword [eax + 0x607030]
sub ecx, edx
mov eax, dword [0x6093f8]
cmp eax, 1
je 0x51266d
cmp dword [0x6083f0], 0xc
je 0x51266d
sub edx, dword [0x608bf8]
add ecx, edx
mov esi, dword [0x608c08]
mov edx, dword [0x608c0c]
add esi, ecx
mov eax, dword [0x6083d0]
mov ebx, dword [0x6083bc]
adc edx, 0
mov dword [edi + 0x14], ecx
mov dword [0x608c08], esi
mov dword [0x608c0c], edx
mov dword [edi + 0x18], 0
mov dword [ebp - 0xc], eax
jmp 0x5126c6
xor eax, eax
lea eax, [eax + eax*2]
shl eax, 5
mov ecx, dword [eax + 0x607020]
jmp 0x512610
mov edx, dword [0x608c0c]
mov esi, dword [0x608c08]
mov ebx, dword [ebp - 4]
mov eax, dword [0x608c00]
sub eax, dword [0x608c10]
mov ecx, dword [0x608c04]
sbb ecx, dword [0x608c14]
mov dword [ebp - 0x1c], eax
or eax, ecx
mov dword [ebp - 0x24], ecx
je 0x512711
mov ecx, esi
call fcn.00527c40
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
movsd qword [ebp - 8], xmm0
call fcn.00527c40
movsd xmm1, qword [ebp - 8]
divsd xmm1, xmm0
mulsd xmm1, qword [0x5cce68]
jmp 0x512714
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm1
push 0x50
lea esi, [edi + 0x20]
push 0
push esi
movss dword [edi + 0x1c], xmm0
call fcn.00528f70
add esp, 0xc
mov eax, 0x607298
cmp dword [ebp - 0xc], 0
mov ecx, 0x6080c0
cmove ecx, eax
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 8]
add eax, dword [ecx + 4]
add dword [esi + 4], eax
mov eax, dword [ecx + 0xc]
add dword [esi + 8], eax
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
add dword [esi + 0xc], eax
mov eax, dword [ecx + 0x28]
add dword [edi + 0x30], eax
mov eax, dword [ecx + 0x30]
add eax, dword [ecx + 0x2c]
add dword [edi + 0x34], eax
mov eax, dword [ecx + 0x34]
add dword [edi + 0x38], eax
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
mov ecx, 0x608110
add dword [edi + 0x3c], eax
mov eax, 0x6072e8
mov esi, dword [ebp - 0xc]
test esi, esi
cmove ecx, eax
mov eax, dword [ecx]
add dword [edi + 0x40], eax
mov eax, dword [ecx + 8]
add eax, dword [ecx + 4]
add dword [edi + 0x44], eax
mov eax, dword [ecx + 0xc]
add dword [edi + 0x48], eax
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
mov ecx, 0x608138
add dword [edi + 0x4c], eax
test esi, esi
mov eax, 0x607310
cmove ecx, eax
mov eax, dword [ecx]
add dword [edi + 0x50], eax
mov eax, dword [ecx + 8]
add eax, dword [ecx + 4]
add dword [edi + 0x54], eax
mov eax, dword [ecx + 0xc]
add dword [edi + 0x58], eax
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
mov ecx, 0x608160
add dword [edi + 0x5c], eax
mov eax, 0x607338
test esi, esi
cmove ecx, eax
mov eax, dword [ecx]
add dword [edi + 0x60], eax
mov eax, dword [ecx + 8]
add eax, dword [ecx + 4]
add dword [edi + 0x64], eax
mov eax, dword [ecx + 0xc]
add dword [edi + 0x68], eax
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
add dword [edi + 0x6c], eax
call fcn.00516790
mov dword [edi + 0x70], eax
mov eax, dword [0x600410]
add eax, dword [0x600414]
add eax, dword [0x600388]
add eax, dword [0x60038c]
add eax, dword [0x600300]
add eax, dword [0x600304]
add eax, dword [0x600278]
add eax, dword [0x60027c]
add eax, dword [0x6001f0]
add eax, dword [0x6001f4]
mov ecx, dword [0x608404]
mov dword [edi + 0x74], eax
mov eax, dword [0x608410]
test eax, eax
je 0x512859
mov dword [edi + 0x78], eax
jmp 0x512860
test ecx, ecx
je 0x512860
mov dword [edi + 0x78], ecx
cmp dword [0x6083c4], 0
mov byte [edi + 0x7c], bl
setne al
test esi, esi
mov byte [edi + 0x7d], al
setne al
test esi, esi
mov byte [edi + 0x7e], al
setne byte [0x609290]
cmp ebx, 2
jne 0x51293e
test esi, esi
jne 0x51293e
cmp byte [0x606f14], 0
je 0x5128fd
cmp byte [0x606ca5], 0
mov esi, dword [0x6084e4]
push 0
je 0x5128da
push 0xa
call fcn.005163e0
mov ecx, esi
xor edi, edi
sub ecx, dword [0x6085bc]
cmp edi, edx
jb 0x51293e
ja 0x5128cb
cmp ecx, eax
jb 0x51293e
mov byte [0x606ca5], 0
mov dword [0x608bc0], esi
jmp 0x51293e
push 5
call fcn.005163e0
mov ecx, esi
xor edi, edi
sub ecx, dword [0x608bc0]
cmp edi, edx
jb 0x51293e
ja 0x5128f5
cmp ecx, eax
jb 0x51293e
mov dword [0x6085bc], esi
jmp 0x512931
cmp byte [0x606ca5], 0
je 0x512920
cmp ecx, dword [0x608548]
jb 0x512917
call fcn.00519050
test al, al
jne 0x51293e
mov byte [0x606ca5], 0
jmp 0x51293e
cmp ecx, dword [0x608548]
jb 0x51293e
call fcn.00519050
test al, al
je 0x51293e
inc dword [0x608bc4]
mov byte [0x606ca5], 1
call fcn.00505710
cmp dword [0x605734], 4
mov dword [0x6083a8], 0
jb 0x512981
mov eax, dword [0x6083b8]
push 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push dword [0x6083f0]
push dword [0x6083bc]
push eax
push str._ENDGC__d__gen___lu__collect_classes___lu___n
push 3
push 0xd
call fcn.004fbef0
add esp, 0x1c
cmp byte [0x606c0e], 0
je 0x5129ec
mov eax, dword [0x6084cc]
lea esi, [eax + eax]
mov eax, 0x4000
cmp esi, eax
cmova esi, eax
cmp esi, dword [0x6084d8]
je 0x5129e5
mov eax, esi
mov ecx, 0xffffffff
mul dword [ebp - 0x14]
push 0x5cdf40
cmovb eax, ecx
push eax
call fcn.00527f85
mov edi, eax
add esp, 8
test edi, edi
je 0x5129e5
push dword [0x606c30]
call fcn.005278a8
add esp, 4
mov dword [0x6084dc], edi
mov dword [0x6084cc], esi
mov dword [0x6084d8], esi
mov byte [0x606c0e], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret