Function at 0x595ff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b4370
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x7a1070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x36c], 0
mov eax, dword [0x814350]
mov ecx, dword [0x814354]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 1
mov byte [ebp - 0x17], 1
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2a4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2a4]
mov eax, dword [edx + 0xc]
call eax
push eax
call fcn.0058ca40
add esp, 0xc
push str.Effect
lea ecx, [ebp - 0x6c]
call fcn.004b1020
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x2a7]
call fcn.0059f760
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2a4]
add edx, 0x108dc
mov dword [ebp - 0x2c4], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x2c4]
call fcn.004bed80
mov ecx, dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0x18], edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.004b1670
mov dword [ebp - 4], 0xffffffff
mov byte [ebp - 0x334], 0
mov byte [ebp - 0x333], 1
mov byte [ebp - 0x332], 0
mov byte [ebp - 0x331], 1
mov byte [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0xf
mov byte [ebp - 0x334], 0
mov eax, dword [ebp - 0x2a4]
add eax, 0x109b0
mov dword [ebp - 0x318], eax
lea ecx, [ebp - 0x334]
push ecx
mov ecx, dword [ebp - 0x318]
call fcn.0059ef50
mov edx, dword [ebp - 0x2a4]
add edx, 0x109e0
mov dword [ebp - 0x2c8], edx
mov eax, dword [ebp - 0x2c8]
mov dword [eax], 2
mov ecx, dword [ebp - 0x2c8]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x2a4]
add edx, 0x10968
mov dword [ebp - 0x314], edx
mov eax, dword [ebp - 0x314]
mov byte [eax], 1
lea ecx, [ebp - 0x2a0]
call fcn.006074c0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.0058f200
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2a4], 0
je 0x5961d8
mov ecx, dword [ebp - 0x2a4]
add ecx, 4
mov dword [ebp - 0x2cc], ecx
jmp 0x5961e2
mov dword [ebp - 0x2cc], 0
push str.effect.pfx
lea ecx, [ebp - 0x148]
call fcn.004b1020
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2cc]
push edx
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x50]
call fcn.0058f6d0
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x148]
call fcn.004b1670
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x10c3c
call fcn.00569d30
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x31c], edx
mov eax, dword [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0058f250
mov dword [ebp - 0x308], eax
mov edx, dword [ebp - 0x308]
mov dword [ebp - 0x304], edx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x370]
push eax
mov ecx, dword [ebp - 0x304]
call fcn.004b86c0
mov ecx, dword [eax]
mov dword [ebp - 0x2d0], ecx
push ecx
mov edx, esp
mov dword [ebp - 0x374], esp
mov dword [ebp - 0x2d4], edx
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x2d0], 0
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x300]
mov dword [ecx], edx
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x390], eax
lea ecx, [ebp - 0x2a0]
call fcn.0059d430
mov byte [ebp - 0x2a5], al
movzx ecx, byte [ebp - 0x2a5]
test ecx, ecx
jne 0x5962f6
mov dword [ebp - 0x2d8], 1
jmp 0x596300
mov dword [ebp - 0x2d8], 0
mov dl, byte [ebp - 0x2d8]
mov byte [ebp - 0x2a6], dl
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x34c]
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x348]
mov dword [ebp - 0x2b4], ecx
cmp dword [ebp - 0x2b4], 0
je 0x59634d
push 1
mov edx, dword [ebp - 0x2b4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2b4]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x344], eax
jmp 0x596357
mov dword [ebp - 0x344], 0
mov byte [ebp - 4], 4
movzx eax, byte [ebp - 0x2a6]
test eax, eax
je 0x5963c6
push str.effect.pfx
push str.Failed_to_load_Pfx_file.__s
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.0063b7a0
add esp, 0xc
mov dword [ebp - 0x340], 0xb
mov byte [ebp - 4], 3
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.005a4c60
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004b1670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a0]
call fcn.00607640
mov eax, dword [ebp - 0x340]
jmp 0x596b74
mov edx, dword [ebp - 0x2a4]
add edx, 0x106e0
push edx
lea ecx, [ebp - 0x2a0]
call fcn.0059d330
movzx eax, al
test eax, eax
jne 0x596440
push str.Failed_to_read_Pfx_file
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.0063b7a0
add esp, 8
mov dword [ebp - 0x33c], 0xb
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call fcn.005a4c60
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004b1670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a0]
call fcn.00607640
mov eax, dword [ebp - 0x33c]
jmp 0x596b74
lea ecx, [ebp - 0x1d0]
call fcn.004bf050
mov byte [ebp - 4], 0xd
push str.WORLDVIEWPROJECTION
lea ecx, [ebp - 0x130]
call fcn.004b1020
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x130]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.0059f760
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx + edx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x130]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.WORLDVIEWIT
lea ecx, [ebp - 0x114]
call fcn.004b1020
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x2a9]
call fcn.0059f760
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x2a4]
mov dword [edx + ecx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x114]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.LIGHTDIREYE
lea ecx, [ebp - 0xf8]
call fcn.004b1020
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x2aa]
call fcn.0059f760
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov edx, 4
shl edx, 1
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx + edx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x16
push 0
push 1
lea ecx, [ebp - 0xf8]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.TEXTURE0
lea ecx, [ebp - 0x88]
call fcn.004b1020
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x2ab]
call fcn.0059f760
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx + edx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x19
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.ALPHA
lea ecx, [ebp - 0xdc]
call fcn.004b1020
mov byte [ebp - 4], 0x1a
lea edx, [ebp - 0xdc]
push edx
lea ecx, [ebp - 0x2ac]
call fcn.0059f760
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 0x2a4]
mov dword [edx + ecx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x1c
push 0
push 1
lea ecx, [ebp - 0xdc]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.AMBIENT
lea ecx, [ebp - 0xc0]
call fcn.004b1020
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x2ad]
call fcn.0059f760
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov edx, 4
imul ecx, edx, 6
mov edx, dword [ebp - 0x2a4]
mov dword [edx + ecx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x1f
push 0
push 1
lea ecx, [ebp - 0xc0]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.DIFFUSE
lea ecx, [ebp - 0xa4]
call fcn.004b1020
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x2bd]
call fcn.0059f760
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov edx, 4
imul ecx, edx, 7
mov edx, dword [ebp - 0x2a4]
mov dword [edx + ecx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x22
push 0
push 1
lea ecx, [ebp - 0xa4]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.SPECULAR
lea ecx, [ebp - 0x1b8]
call fcn.0058c690
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
shl ecx, 3
mov edx, dword [ebp - 0x2a4]
mov dword [edx + ecx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x24
push 0
push 1
lea ecx, [ebp - 0x1b8]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.HAVETEXTURE
lea ecx, [ebp - 0x19c]
call fcn.0058c690
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
imul edx, ecx, 5
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx + edx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x26
push 0
push 1
lea ecx, [ebp - 0x19c]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.SHININESS
lea ecx, [ebp - 0x180]
call fcn.0058c690
mov byte [ebp - 4], 0x27
lea edx, [ebp - 0x180]
push edx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
imul edx, ecx, 9
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx + edx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x28
push 0
push 1
lea ecx, [ebp - 0x180]
call fcn.004b1670
mov byte [ebp - 4], 0xd
push str.OPACITY
lea ecx, [ebp - 0x164]
call fcn.0058c690
mov byte [ebp - 4], 0x29
lea edx, [ebp - 0x164]
push edx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x106e0
call fcn.00590520
mov ecx, 4
imul edx, ecx, 0xa
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx + edx + 0x105a0], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x2a
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.004b1670
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x368]
mov dword [ebp - 0x338], edx
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x2b8], ecx
mov edx, dword [ebp - 0x2b8]
mov dword [edx], 0
mov eax, dword [ebp - 0x2b8]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x2b8]
mov dword [ecx + 8], 0
mov byte [ebp - 4], 0x2b
push 0x10
push 1
push 1
push 0
lea ecx, [ebp - 0x368]
call fcn.0058d980
lea edx, [ebp - 0x38c]
lea eax, [ebp - 0x368]
push eax
push edx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x10c3c
call fcn.00569d30
mov ecx, eax
call fcn.00621550
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x1059c]
mov dword [ebp - 0x320], edx
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
add ecx, 0x3c
mov dword [ebp - 0x2dc], ecx
mov byte [ebp - 4], 0x2c
lea edx, [ebp - 0x38c]
push edx
mov ecx, dword [ebp - 0x2dc]
call fcn.0056e390
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x37c], eax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x38c]
call fcn.005a0470
lea ecx, [ebp - 0x35c]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], edx
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2bc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x2bc]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x2bc]
mov dword [eax + 8], 0
mov byte [ebp - 4], 0x2d
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x1059c]
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp - 0x2f0]
add ecx, 0x3c
push ecx
lea ecx, [ebp - 0x35c]
call fcn.0059f880
lea edx, [ebp - 0x3a0]
lea eax, [ebp - 0x35c]
push eax
push edx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x10c3c
call fcn.00569d30
mov ecx, eax
call fcn.00621010
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x1059c]
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp - 0x2f8]
add ecx, 0x48
mov dword [ebp - 0x2e0], ecx
mov byte [ebp - 4], 0x2e
lea edx, [ebp - 0x3a0]
push edx
mov ecx, dword [ebp - 0x2e0]
call fcn.0056e390
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x394], eax
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x3a0]
call fcn.0059fe70
mov dword [ebp - 0x2fc], 0
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x35c]
call fcn.005a3670
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0x30
lea ecx, [ebp - 0x368]
call fcn.005a31c0
mov byte [ebp - 4], 0x31
push 0
push 1
lea ecx, [ebp - 0x1d0]
call fcn.004b1670
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0x38]
call fcn.005a4c60
mov byte [ebp - 4], 0x33
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004b1670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a0]
call fcn.00607640
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065c160
mov esp, ebp
pop ebp
ret