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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x507cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6503d0]
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.004ac972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x496dee
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 0x496f31
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.0048b430
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 0x496e65
cmp esi, eax
je 0x496e6a
call fcn.004c6952
cmp dword [esp + 0x34], ebx
je 0x496ee8
test esi, esi
jne 0x496ee4
call fcn.004c6952
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x18]
jne 0x496e87
call fcn.004c6952
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x10]
sub eax, 0x10
push eax
call fcn.004018d0
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 0x496ecd
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 0x496e79
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.00401df0
mov esi, dword [esp + 0x44]
add esi, 0xfffffff0
push esi
call fcn.004018d0
add esp, 0x10
jmp 0x497250
mov eax, dword [esi + 0x10]
test al, 1
je 0x496f75
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.00401df0
add esp, 0xc
jmp 0x497240
test al, 4
je 0x496fcb
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.00401df0
add esp, 0x14
jmp 0x497240
test al, 0x10
je 0x497027
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.00401df0
add esp, 0x18
jmp 0x497240
test al, 8
je 0x49706c
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.00401df0
add esp, 0xc
jmp 0x497240
test al, 2
je 0x4971b6
lea ecx, [esp + 0x30]
call fcn.00405ed0
mov bl, byte [ebp + 0xc]
mov byte [esp + 0x80], 1
test bl, bl
jne 0x4970a9
fld qword [esi + 0x18]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push 0x614f78
push edx
call fcn.00401df0
add esp, 0x10
jmp 0x4970f9
lea ecx, [esp + 0x3c]
call fcn.00405ed0
movzx eax, bl
push eax
lea ecx, [esp + 0x40]
push str.__._dE
push ecx
mov byte [esp + 0x8c], 2
call fcn.00401df0
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.00401df0
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.00485000
mov esi, dword [esp + 0x30]
movzx eax, word [esi]
cmp ax, di
je 0x49712d
movzx eax, ax
cmp ax, 0x45
je 0x49712d
cmp ax, 0x65
je 0x49712d
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b510
movzx eax, word [esi + 2]
add esi, 2
cmp ax, di
jne 0x497108
push 0x30
lea ecx, [esp + 0x3c]
call fcn.0044d5e0
push 0x2e
lea ecx, [esp + 0x3c]
call fcn.0044d5e0
movzx eax, word [esi]
cmp ax, 0x45
je 0x497152
cmp ax, 0x65
jne 0x497162
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b510
add esi, 2
movzx eax, word [esi]
cmp ax, 0x2b
je 0x497171
cmp ax, 0x2d
jne 0x497181
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b510
add esi, 2
cmp word [esi], 0x30
jne 0x497196
cmp word [esi + 2], di
je 0x497196
add esi, 2
cmp word [esi], 0x30
je 0x497187
push esi
lea ecx, [esp + 0x3c]
call fcn.00412ba0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 0
call fcn.00485000
jmp 0x497240
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x4971da
fld qword [esi + 0x18]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x40]
push 0x61ca8c
push ecx
call fcn.00401df0
add esp, 0x10
jmp 0x49722a
lea ecx, [esp + 0x3c]
call fcn.00405ed0
movzx edx, bl
push edx
lea eax, [esp + 0x40]
push str.__._df
push eax
mov byte [esp + 0x8c], 3
call fcn.00401df0
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.00401df0
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00485000
push 0x30
lea ecx, [esp + 0x3c]
call fcn.0044d5e0
push 0x2e
lea ecx, [esp + 0x3c]
call fcn.0044d5e0
mov esi, dword [esp + 0x38]
add esi, 0xfffffff0
push esi
call fcn.004018d0
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 0x497278
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