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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4ef1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6341d4]
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.00498073
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x484fbe
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 0x485101
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.0047b9b0
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 0x485035
cmp esi, eax
je 0x48503a
call fcn.004b0692
cmp dword [esp + 0x34], ebx
je 0x4850b8
test esi, esi
jne 0x4850b4
call fcn.004b0692
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x18]
jne 0x485057
call fcn.004b0692
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x10]
sub eax, 0x10
push eax
call fcn.00401930
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 0x48509d
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 0x485049
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.00401e50
mov esi, dword [esp + 0x44]
add esi, 0xfffffff0
push esi
call fcn.00401930
add esp, 0x10
jmp 0x485420
mov eax, dword [esi + 0x10]
test al, 1
je 0x485145
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.00401e50
add esp, 0xc
jmp 0x485410
test al, 4
je 0x48519b
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.00401e50
add esp, 0x14
jmp 0x485410
test al, 0x10
je 0x4851f7
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.00401e50
add esp, 0x18
jmp 0x485410
test al, 8
je 0x48523c
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.00401e50
add esp, 0xc
jmp 0x485410
test al, 2
je 0x485386
lea ecx, [esp + 0x30]
call fcn.00405cf0
mov bl, byte [ebp + 0xc]
mov byte [esp + 0x80], 1
test bl, bl
jne 0x485279
fld qword [esi + 0x18]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push 0x5fb794
push edx
call fcn.00401e50
add esp, 0x10
jmp 0x4852c9
lea ecx, [esp + 0x3c]
call fcn.00405cf0
movzx eax, bl
push eax
lea ecx, [esp + 0x40]
push str.__._dE
push ecx
mov byte [esp + 0x8c], 2
call fcn.00401e50
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.00401e50
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.00401850
mov esi, dword [esp + 0x30]
movzx eax, word [esi]
cmp ax, di
je 0x4852fd
movzx eax, ax
cmp ax, 0x45
je 0x4852fd
cmp ax, 0x65
je 0x4852fd
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b800
movzx eax, word [esi + 2]
add esi, 2
cmp ax, di
jne 0x4852d8
push 0x30
lea ecx, [esp + 0x3c]
call fcn.00446020
push 0x2e
lea ecx, [esp + 0x3c]
call fcn.00446020
movzx eax, word [esi]
cmp ax, 0x45
je 0x485322
cmp ax, 0x65
jne 0x485332
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b800
add esi, 2
movzx eax, word [esi]
cmp ax, 0x2b
je 0x485341
cmp ax, 0x2d
jne 0x485351
movzx eax, ax
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b800
add esi, 2
cmp word [esi], 0x30
jne 0x485366
cmp word [esi + 2], di
je 0x485366
add esi, 2
cmp word [esi], 0x30
je 0x485357
push esi
lea ecx, [esp + 0x3c]
call fcn.00412e30
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 0
call fcn.00401850
jmp 0x485410
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x4853aa
fld qword [esi + 0x18]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x40]
push 0x6022b4
push ecx
call fcn.00401e50
add esp, 0x10
jmp 0x4853fa
lea ecx, [esp + 0x3c]
call fcn.00405cf0
movzx edx, bl
push edx
lea eax, [esp + 0x40]
push str.__._df
push eax
mov byte [esp + 0x8c], 3
call fcn.00401e50
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.00401e50
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00401850
push 0x30
lea ecx, [esp + 0x3c]
call fcn.00446020
push 0x2e
lea ecx, [esp + 0x3c]
call fcn.00446020
mov esi, dword [esp + 0x38]
add esi, 0xfffffff0
push esi
call fcn.00401930
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 0x485448
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