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

Disassembly:
push 0xffffffffffffffff
push 0x6664c4
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x704e7c]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
jmp 0x5836c4
call fcn.00582e40
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004b81d0
mov esi, dword [esp + 0x198]
lea edx, [esp + 0x44]
push edx
xor ebp, ebp
push esi
mov dword [esp + 0x198], ebp
call fcn.00561c80
add esp, 8
test al, al
jne 0x583727
push esi
push str.TextureSet::Load_:_cannot_load__s
call fcn.00584480
add esp, 8
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.004b7140
xor al, al
jmp 0x584135
push 0xa
push str.textureset
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
call fcn.00416f50
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x198], 1
call fcn.004b71a0
mov edi, eax
cmp esi, ebp
je 0x583775
cmp esi, dword [edi]
je 0x58377a
call fcn.006111cc
cmp ebx, dword [edi + 4]
mov ebp, 0x10
sete bl
mov byte [esp + 0x190], 0
cmp dword [esp + 0x30], ebp
jb 0x5837a0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00610458
add esp, 4
test bl, bl
je 0x5837b6
mov eax, dword [esp + 0x198]
push eax
push str.TextureSet::Load_:_syntax_error__TextureSet__filename:__s_
jmp 0x583704
push 0xc
push str.texturecount
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00416f50
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x198], 2
call fcn.004b71a0
mov edi, eax
test esi, esi
je 0x583808
cmp esi, dword [edi]
je 0x58380d
call fcn.006111cc
cmp ebx, dword [edi + 4]
mov byte [esp + 0x190], 0
sete bl
cmp dword [esp + 0x30], ebp
jb 0x58382e
mov eax, dword [esp + 0x1c]
push eax
call fcn.00610458
add esp, 4
test bl, bl
je 0x583844
mov ecx, dword [esp + 0x198]
push ecx
push str.TextureSet::Load_:_syntax_error__TextureCount__filename:__s_
jmp 0x583704
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.00583650
push str.texturecount
lea ecx, [esp + 0x1c]
call fcn.00417080
push 0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x198], 3
call fcn.004b7010
mov ecx, eax
call fcn.00493ca0
mov esi, eax
mov byte [esp + 0x190], 0
cmp dword [esp + 0x30], ebp
jb 0x583899
mov eax, dword [esp + 0x1c]
push eax
call fcn.00610458
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
cmp dword [esi + 0x18], ebp
jb 0x5838b8
mov esi, dword [esi + 4]
jmp 0x5838bb
add esi, 4
push esi
call fcn.006131e8
mov esi, eax
add esp, 4
lea ecx, [esi + 1]
push ecx
lea ecx, [edi + 4]
call fcn.005834d0
test esi, esi
jle 0x5840f0
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x34]
push edx
push str.texture_03d
lea eax, [esp + 0x168]
push 0x21
push eax
call fcn.006130ac
lea eax, [esp + 0x170]
add esp, 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x583921
sub eax, edx
push eax
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x20]
call fcn.00416f50
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x198], 4
call fcn.004b71a0
mov edi, eax
test esi, esi
je 0x583969
cmp esi, dword [edi]
je 0x58396e
call fcn.006111cc
cmp ebp, dword [edi + 4]
mov byte [esp + 0x190], 0
sete bl
cmp dword [esp + 0x30], 0x10
jb 0x583990
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00610458
add esp, 4
test bl, bl
jne 0x5840dd
lea eax, [esp + 0x160]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5839b6
sub eax, edx
push eax
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x20]
call fcn.00416f50
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x194], 5
call fcn.004b7010
mov ebp, 0x10
mov esi, eax
mov byte [esp + 0x190], 0
cmp dword [esp + 0x30], ebp
jb 0x583a09
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00610458
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x583a3c
call fcn.006111cc
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x18], ebp
jb 0x583a49
mov ecx, dword [eax + 4]
jmp 0x583a4c
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x583a67
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x190], 6
cmp ecx, 1
ja 0x583aa9
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x1c
cmp dword [eax + 0x18], ebp
jb 0x583ab9
mov ecx, dword [eax + 4]
jmp 0x583abc
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], 0
lea edi, [eax + 1]
jmp 0x583ae0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x583ae0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x190], 7
cmp eax, 2
ja 0x583b22
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x38
cmp dword [eax + 0x18], ebp
jb 0x583b32
mov ecx, dword [eax + 4]
jmp 0x583b35
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x583b54
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x190], 8
cmp ecx, 3
ja 0x583b96
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x54
cmp dword [eax + 0x18], ebp
jb 0x583ba6
mov ecx, dword [eax + 4]
jmp 0x583ba9
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0x15c], 0xf
mov dword [esp + 0x158], ebx
mov byte [esp + 0x148], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x583bc8
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x14c]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x190], 9
cmp eax, 4
ja 0x583c0a
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x70
cmp dword [eax + 0x18], ebp
jb 0x583c1a
mov ecx, dword [eax + 4]
jmp 0x583c1d
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], 0
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x583c40
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0xdc]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x190], 0xa
cmp ecx, 5
ja 0x583c82
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x8c
cmp dword [eax + 0x18], ebp
jb 0x583c94
mov ecx, dword [eax + 4]
jmp 0x583c97
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0x124], 0xf
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x583cb6
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x114]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x190], 0xb
cmp eax, 6
ja 0x583cf8
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0xa8
cmp dword [eax + 0x18], ebp
jb 0x583d0a
mov ecx, dword [eax + 4]
jmp 0x583d0d
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0x140], 0xf
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], 0
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x583d30
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x130]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x190], 0xc
cmp ecx, 7
ja 0x583d72
call fcn.006111cc
mov esi, dword [esi + 0xc]
add esi, 0xc4
cmp dword [esi + 0x18], ebp
jb 0x583d85
mov esi, dword [esi + 4]
jmp 0x583d88
add esi, 4
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x583da8
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xf8]
call fcn.00416f50
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x190], 0xd
cmp dword [esp + 0xd0], ebp
jae 0x583dde
lea eax, [esp + 0xbc]
push eax
call fcn.00613476
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0xa4]
add esp, 4
cmp dword [esp + 0xb4], ebp
jae 0x583e02
lea eax, [esp + 0xa0]
push eax
call fcn.00613476
fstp dword [esp + 0x74]
mov eax, dword [esp + 0x14c]
add esp, 4
cmp dword [esp + 0x15c], ebp
jae 0x583e26
lea eax, [esp + 0x148]
push eax
call fcn.00613476
fstp dword [esp + 0x78]
mov eax, dword [esp + 0xdc]
add esp, 4
cmp dword [esp + 0xec], ebp
jae 0x583e4a
lea eax, [esp + 0xd8]
push eax
call fcn.00613476
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x114]
add esp, 4
cmp dword [esp + 0x124], ebp
jae 0x583e6e
lea eax, [esp + 0x110]
push eax
call fcn.006131fe
add esp, 4
cmp eax, ebx
jne 0x583e7f
cmp edx, ebx
je 0x583e86
mov byte [esp + 0x3c], 1
jmp 0x583e8b
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x12c]
cmp dword [esp + 0x140], ebp
jae 0x583ea2
lea eax, [esp + 0x12c]
push eax
call fcn.006131fe
add esp, 4
movzx esi, ax
mov eax, dword [esp + 0xf4]
cmp dword [esp + 0x108], ebp
jae 0x583ec5
lea eax, [esp + 0xf4]
push eax
call fcn.006131fe
add esp, 4
movzx ecx, ax
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], ebp
jae 0x583ee8
lea eax, [esp + 0x84]
fld dword [esp + 0x19c]
mov edx, dword [esp + 0x3c]
push ecx
fstp dword [esp]
push ecx
fld dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
push esi
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [esp + 0x94]
fstp dword [esp + 8]
fld dword [esp + 0x90]
fstp dword [esp + 4]
fld dword [esp + 0x88]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x58]
push eax
call fcn.00582510
test al, al
jne 0x583f5d
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], ebp
jae 0x583f4f
lea eax, [esp + 0x84]
push eax
push str.CTextureSet::Load_:_SetTexture_failed_:_Filename:__s
call fcn.00584480
add esp, 8
cmp dword [esp + 0x108], ebp
jb 0x583f76
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], 0
cmp dword [esp + 0x140], ebp
jb 0x583fa5
mov edx, dword [esp + 0x12c]
push edx
call fcn.00610458
add esp, 4
mov dword [esp + 0x140], edi
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], 0
cmp dword [esp + 0x124], ebp
jb 0x583fd4
mov eax, dword [esp + 0x110]
push eax
call fcn.00610458
add esp, 4
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], 0
cmp dword [esp + 0xec], ebp
jb 0x584003
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], 0
cmp dword [esp + 0x15c], ebp
jb 0x584032
mov edx, dword [esp + 0x148]
push edx
call fcn.00610458
add esp, 4
mov dword [esp + 0x15c], edi
mov dword [esp + 0x158], ebx
mov byte [esp + 0x148], 0
cmp dword [esp + 0xb4], ebp
jb 0x584061
mov eax, dword [esp + 0xa0]
push eax
call fcn.00610458
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], 0
cmp dword [esp + 0xd0], ebp
jb 0x584090
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], 0
mov byte [esp + 0x190], 0
cmp dword [esp + 0x98], ebp
jb 0x5840c7
mov edx, dword [esp + 0x84]
push edx
call fcn.00610458
add esp, 4
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], 0
mov eax, 1
add dword [esp + 0x34], eax
sub dword [esp + 0x40], eax
jne 0x5838e6
mov esi, dword [esp + 0x198]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x584100
mov ecx, dword [esp + 0x38]
sub eax, edx
push eax
push esi
add ecx, 0xb4
call fcn.00416f50
jmp 0x58411f
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.004b7140
mov al, 1
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.006108ae
add esp, 0x180
ret 8