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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5003d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x646274]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x3c], edi
call fcn.004a72ba
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x490afe
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x80], edi
cmp ecx, edi
je 0x490c41
fld qword [esi + 0x18]
lea edi, [esi + 0x18]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
fldcw word [esp + 0x3c]
push eax
add ecx, 4
fistp qword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x34]
push edx
fldcw word [esp + 0x38]
call fcn.004853b0
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x30]
mov ebx, dword [eax + 0x1c]
add eax, 4
mov eax, dword [eax]
test esi, esi
je 0x490b75
cmp esi, eax
je 0x490b7a
call fcn.004bf882
cmp dword [esp + 0x34], ebx
je 0x490bf8
test esi, esi
jne 0x490bf4
call fcn.004bf882
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x18]
jne 0x490b97
call fcn.004bf882
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x10]
sub eax, 0x10
push eax
call fcn.004018e0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x80], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x490bdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi]
jmp 0x490b89
fld qword [edi]
lea edx, [esp + 0x38]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
push ecx
push str.0x_X
push edx
fldcw word [esp + 0x3c]
call fcn.00401e60
mov esi, dword [esp + 0x44]
add esi, 0xfffffff0
push esi
call fcn.004018e0
add esp, 0x10
jmp 0x490f60
mov eax, dword [esi + 0x10]
test al, 1
je 0x490c85
fld qword [esi + 0x18]
lea edx, [esp + 0x38]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
push ecx
push str.0x_X
push edx
fldcw word [esp + 0x3c]
call fcn.00401e60
add esp, 0xc
jmp 0x490f50
test al, 4
je 0x490cdb
fld qword [esi + 0x18]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
fldcw word [esp + 0x30]
push edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
lea ecx, [esp + 0x44]
push str.RGB__d__d__d_
push ecx
call fcn.00401e60
add esp, 0x14
jmp 0x490f50
test al, 0x10
je 0x490d37
fld qword [esi + 0x18]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov edx, eax
shr edx, 0x18
push edx
fldcw word [esp + 0x34]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
push edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
lea ecx, [esp + 0x48]
push str.RGBA__d__d__d__d_
push ecx
call fcn.00401e60
add esp, 0x18
jmp 0x490f50
test al, 8
je 0x490d7c
fld qword [esi + 0x18]
lea ecx, [esp + 0x38]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp dword [esp + 0x3c]
mov dx, word [esp + 0x3c]
movzx eax, dx
push eax
push str._c
fldcw word [esp + 0x38]
push ecx
call fcn.00401e60
add esp, 0xc
jmp 0x490f50
test al, 2
je 0x490ec6
lea ecx, [esp + 0x30]
call fcn.00401980
mov bl, byte [ebp + 0xc]
mov byte [esp + 0x80], 1
test bl, bl
jne 0x490db9
fld qword [esi + 0x18]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push 0x60cb18
push edx
call fcn.00401e60
add esp, 0x10
jmp 0x490e09
lea ecx, [esp + 0x3c]
call fcn.00401980
movzx eax, bl
push eax
lea ecx, [esp + 0x40]
push str.__._dE
push ecx
mov byte [esp + 0x8c], 2
call fcn.00401e60
mov edx, dword [esp + 0x48]
fld qword [esi + 0x18]
add esp, 4
lea eax, [esp + 0x38]
fstp qword [esp]
push edx
push eax
call fcn.00401e60
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.004801b0
mov esi, dword [esp + 0x30]
movzx eax, word [esi]
cmp ax, di
je 0x490e3d
movzx eax, ax
cmp ax, 0x45
je 0x490e3d
cmp ax, 0x65
je 0x490e3d
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b500
movzx eax, word [esi + 2]
add esi, 2
cmp ax, di
jne 0x490e18
push 0x30
lea ecx, [esp + 0x3c]
call fcn.0044a3d0
push 0x2e
lea ecx, [esp + 0x3c]
call fcn.0044a3d0
movzx eax, word [esi]
cmp ax, 0x45
je 0x490e62
cmp ax, 0x65
jne 0x490e72
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b500
add esi, 2
movzx eax, word [esi]
cmp ax, 0x2b
je 0x490e81
cmp ax, 0x2d
jne 0x490e91
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b500
add esi, 2
cmp word [esi], 0x30
jne 0x490ea6
cmp word [esi + 2], di
je 0x490ea6
add esi, 2
cmp word [esi], 0x30
je 0x490e97
push esi
lea ecx, [esp + 0x3c]
call fcn.00412c90
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 0
call fcn.004801b0
jmp 0x490f50
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x490eea
fld qword [esi + 0x18]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x40]
push 0x614004
push ecx
call fcn.00401e60
add esp, 0x10
jmp 0x490f3a
lea ecx, [esp + 0x3c]
call fcn.00401980
movzx edx, bl
push edx
lea eax, [esp + 0x40]
push str.__._df
push eax
mov byte [esp + 0x8c], 3
call fcn.00401e60
mov ecx, dword [esp + 0x48]
fld qword [esi + 0x18]
add esp, 4
lea edx, [esp + 0x40]
fstp qword [esp]
push ecx
push edx
call fcn.00401e60
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.004801b0
push 0x30
lea ecx, [esp + 0x3c]
call fcn.0044a3d0
push 0x2e
lea ecx, [esp + 0x3c]
call fcn.0044a3d0
mov esi, dword [esp + 0x38]
add esi, 0xfffffff0
push esi
call fcn.004018e0
add esp, 4
mov edi, dword [ebp + 8]
add eax, 0x10
or ecx, 0xffffffff
mov dword [edi], eax
lea eax, [esi + 0xc]
mov dword [esp + 0x80], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x490f88
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8