Function at 0x434260
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x729a57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov eax, dword [esp + 0x10c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0xb0
mov dword [edi + 0x10], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10c], ebx
je 0x4342b2
mov ecx, eax
call fcn.006c81e0
jmp 0x4342b4
xor eax, eax
mov dword [edi + 0x60], eax
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x2b8]
mov edx, dword [ecx]
push 1
or ebp, 0xffffffff
push eax
mov dword [esp + 0x114], ebp
call dword [edx + 0x94]
push 0xb0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x10c], 1
je 0x434301
mov ecx, eax
call fcn.006c81e0
jmp 0x434303
xor eax, eax
mov dword [edi + 0x64], eax
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x2b8]
mov edx, dword [ecx]
push 1
push eax
mov dword [esp + 0x114], ebp
call dword [edx + 0x94]
push 0xb0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x10c], 2
je 0x43434d
mov ecx, eax
call fcn.006c81e0
jmp 0x43434f
xor eax, eax
mov ecx, dword [edi + 0x60]
push str.shadow_volume
mov dword [esp + 0x110], ebp
mov dword [edi + 0x68], eax
call fcn.006ea1a0
mov ecx, dword [edi + 0x64]
push str.shadow_overlay
call fcn.006ea1a0
mov ecx, dword [edi + 0x68]
push str.scene_objects
call fcn.006ea1a0
mov ecx, dword [edi + 0x68]
mov eax, dword [ecx]
push 1
call dword [eax + 0x50]
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x2b8]
mov eax, dword [edi + 0x68]
mov edx, dword [ecx]
push 1
push eax
call dword [edx + 0x94]
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x10c], 3
je 0x4343f4
mov ecx, esi
call fcn.00405990
push ebx
push ebx
mov ecx, esi
mov byte [esp + 0x114], 4
mov dword [esi], 0x74652c
call fcn.00405960
push 1
push ebx
mov ecx, esi
call fcn.00405960
mov dword [esi + 0x18], 3
jmp 0x4343f6
xor esi, esi
push ebx
push 1
mov ecx, esi
mov dword [esp + 0x114], ebp
call fcn.00405960
push 1
push ebx
mov ecx, esi
call fcn.00405960
cmp esi, ebx
mov ecx, dword [edi + 0x60]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], esi
je 0x434424
inc dword [esi + 4]
add ecx, 0x88
call fcn.00405840
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x10c], 5
je 0x434469
mov ecx, esi
call fcn.00405990
mov dword [esi], 0x7464f8
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 1
mov eax, esi
jmp 0x43446b
xor eax, eax
cmp eax, ebx
push ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov edx, dword [edi + 0x60]
mov ecx, esp
mov dword [esp + 0x110], ebp
mov dword [esp + 0x14], esp
mov dword [ecx], eax
je 0x43448b
inc dword [eax + 4]
lea ecx, [edx + 0x88]
call fcn.00405840
push 0x58
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x10c], 6
je 0x4344be
mov ecx, eax
call fcn.006db0a0
mov esi, eax
jmp 0x4344c0
xor esi, esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x40]
mov dword [esp + 0x110], ebp
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0040a7e0
push ebx
push 1
mov ecx, esi
call fcn.00405960
push ebx
push 1
mov ecx, esi
mov dword [esi + 0x50], ebx
call fcn.00405960
cmp esi, ebx
mov eax, dword [edi + 0x60]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
mov dword [ecx], esi
je 0x434516
inc dword [esi + 4]
lea ecx, [eax + 0x88]
call fcn.00405840
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x10c], 7
je 0x434593
mov ecx, esi
call fcn.00405990
push ebx
push ebx
mov ecx, esi
mov byte [esp + 0x114], 8
mov dword [esi], 0x7465a8
call fcn.00405960
push 1
push 0xf
push 6
mov ecx, esi
call fcn.00408a10
push 5
push 0xf
push 7
mov ecx, esi
call fcn.00408a10
push 9
push ebx
mov ecx, esi
call fcn.00405960
push 0xa
push 7
push ebx
mov ecx, esi
call fcn.00408a10
mov byte [esi + 0x18], bl
jmp 0x434595
xor esi, esi
push ebx
push 1
mov ecx, esi
mov dword [esp + 0x114], ebp
call fcn.00405960
push 0xd
push 1
mov ecx, esi
call fcn.00405960
cmp esi, ebx
mov ecx, dword [edi + 0x60]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], esi
je 0x4345c4
inc dword [esi + 4]
add ecx, 0x88
call fcn.00405840
push 0x38
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x10c], 9
je 0x43461d
mov ecx, esi
call fcn.00405990
mov dword [esi], 0x746a5c
mov byte [esi + 0x18], bl
mov dword [esi + 0x1c], 4
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 3
mov dword [esi + 0x34], ebx
jmp 0x43461f
xor esi, esi
cmp esi, ebx
mov byte [esi + 0x18], 1
mov dword [esi + 0x1c], 7
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [edi + 0x60]
push ecx
mov eax, esp
mov dword [esp + 0x110], ebp
mov dword [esp + 0x14], esp
mov dword [eax], esi
je 0x43464d
inc dword [esi + 4]
add ecx, 0x88
call fcn.00405840
push 0x38
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x10c], 0xa
je 0x4346a6
mov ecx, esi
call fcn.00405990
mov dword [esi], 0x746a5c
mov byte [esi + 0x18], bl
mov dword [esi + 0x1c], 4
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 3
mov dword [esi + 0x34], ebx
jmp 0x4346a8
xor esi, esi
cmp esi, ebx
mov byte [esi + 0x18], 1
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], 5
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [edi + 0x64]
push ecx
mov eax, esp
mov dword [esp + 0x110], ebp
mov dword [esp + 0x14], esp
mov dword [eax], esi
je 0x4346d9
inc dword [esi + 4]
add ecx, 0x88
call fcn.00405840
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x10c], 0xb
je 0x434756
mov ecx, esi
call fcn.00405990
push ebx
push ebx
mov ecx, esi
mov byte [esp + 0x114], 0xc
mov dword [esi], 0x7465a8
call fcn.00405960
push 1
push 0xf
push 6
mov ecx, esi
call fcn.00408a10
push 5
push 0xf
push 7
mov ecx, esi
call fcn.00408a10
push 9
push ebx
mov ecx, esi
call fcn.00405960
push 0xa
push 7
push ebx
mov ecx, esi
call fcn.00408a10
mov byte [esi + 0x18], bl
jmp 0x434758
xor esi, esi
xor edx, edx
mov dx, word [esi + 0x14]
mov dword [esp + 0x10c], ebp
and edx, 0xfe43
or edx, 0x43
cmp esi, ebx
mov word [esi + 0x14], dx
mov ecx, dword [edi + 0x64]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], esi
je 0x434785
inc dword [esi + 4]
add ecx, 0x88
call fcn.00405840
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x10c], 0xd
je 0x4347e0
mov ecx, esi
call fcn.00405990
push ebx
push ebx
mov ecx, esi
mov byte [esp + 0x114], 0xe
mov dword [esi], 0x74652c
call fcn.00405960
push 1
push ebx
mov ecx, esi
call fcn.00405960
mov dword [esi + 0x18], 3
jmp 0x4347e2
xor esi, esi
and word [esi + 0x14], 0xfffc
cmp esi, ebx
mov eax, dword [edi + 0x64]
push ecx
mov ecx, esp
mov dword [esp + 0x110], ebp
mov dword [esp + 0x14], esp
mov dword [ecx], esi
je 0x434802
inc dword [esi + 4]
lea ecx, [eax + 0x88]
call fcn.00405840
mov eax, dword [esp + 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..Morrowind.ini
push ebx
push str.High_Detail_Shadows
push str.General
mov dword [edi + 8], eax
call esi
dec eax
neg eax
sbb al, al
push str..Morrowind.ini
inc al
mov byte [edi], al
mov ecx, dword [0x7c67dc]
mov ax, word [ecx + 0x84]
push 1
push str.Maximum_Shadows_Per_Object
push str.General
mov word [edi + 0x14], ax
call esi
cmp ax, 1
mov word [edi + 0x16], ax
jae 0x43486c
mov word [edi + 0x16], 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], str.meshesw_shadowShortBladeOneHand.nif
mov dword [esp + 0x2c], str.meshesw_shadowLongBladeOneHand.nif
mov dword [esp + 0x30], str.meshesw_shadowLongBladeTwoClose.nif
mov dword [esp + 0x34], str.meshesw_shadowBluntOneHand.nif
mov dword [esp + 0x38], str.meshesw_shadowBluntTwoClose.nif
mov dword [esp + 0x3c], str.meshesw_shadowBluntTwoWide.nif
mov dword [esp + 0x40], str.meshesw_shadowSpearTwoWide.nif
mov dword [esp + 0x44], str.meshesw_shadowAxeOneHand.nif
mov dword [esp + 0x48], str.meshesw_shadowAxeTwoClose.nif
mov dword [esp + 0x4c], str.meshesw_shadowMarksmanBow.nif
mov dword [esp + 0x50], str.meshesw_shadowMarksmanCrossbow.nif
call fcn.0051ad20
lea edx, [esp + 0x28]
mov dword [esp + 0x10c], 0xf
mov dword [esp + 0x14], edx
lea ebp, [edi + 0x20]
mov dword [esp + 0x18], 0xb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x58]
call fcn.006c41d0
cmp dword [esp + 0xc0], ebx
jbe 0x434939
mov edx, dword [esp + 0xb8]
mov esi, dword [edx]
push esi
mov ecx, edi
call fcn.00434cc0
mov ecx, dword [ebp]
cmp ecx, esi
je 0x434939
cmp ecx, ebx
je 0x43492f
dec dword [ecx + 4]
jne 0x43492f
cmp ecx, ebx
je 0x43492f
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, ebx
mov dword [ebp], esi
je 0x434939
inc dword [esi + 4]
lea ecx, [esp + 0x54]
call fcn.006c3170
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 4
add ebp, 4
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
jne 0x4348eb
push str.meshesw_shadowShield.nif
lea ecx, [esp + 0x58]
call fcn.006c41d0
cmp dword [esp + 0xc0], ebx
jbe 0x4349a7
mov ecx, dword [esp + 0xb8]
mov esi, dword [ecx]
push esi
mov ecx, edi
call fcn.00434cc0
mov ecx, dword [edi + 0x58]
cmp ecx, esi
je 0x4349a7
cmp ecx, ebx
je 0x43499d
dec dword [ecx + 4]
jne 0x43499d
cmp ecx, ebx
je 0x43499d
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, ebx
mov dword [edi + 0x58], esi
je 0x4349a7
inc dword [esi + 4]
lea ecx, [esp + 0x54]
call fcn.006c3170
push str.meshesw_shadowTorch.nif
lea ecx, [esp + 0x58]
call fcn.006c41d0
cmp dword [esp + 0xc0], ebx
jbe 0x4349fc
mov eax, dword [esp + 0xb8]
mov esi, dword [eax]
push esi
mov ecx, edi
call fcn.00434cc0
mov ecx, dword [edi + 0x5c]
cmp ecx, esi
je 0x4349fc
cmp ecx, ebx
je 0x4349f2
dec dword [ecx + 4]
jne 0x4349f2
cmp ecx, ebx
je 0x4349f2
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, ebx
mov dword [edi + 0x5c], esi
je 0x4349fc
inc dword [esi + 4]
lea ecx, [esp + 0x54]
call fcn.006c3170
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x390]
cmp eax, ebx
je 0x434b28
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x390]
cmp dword [eax], ebx
je 0x434b28
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x14]
push 0xa
push 2
mov ecx, eax
call fcn.004e50c0
mov ecx, eax
call fcn.00473060
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x434b28
push eax
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x2dc]
call fcn.004356b0
test al, al
jne 0x434b28
mov esi, dword [edi + 0x58]
cmp esi, ebx
mov ecx, esi
mov dword [esp + 0x14], ecx
je 0x434a8c
inc dword [esi + 4]
cmp esi, ebx
mov byte [esp + 0x10c], 0x10
je 0x434b11
mov ecx, dword [0x7c67e0]
push esi
call fcn.0048eb00
mov ebp, eax
cmp ebp, ebx
je 0x434adc
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 4]
cmp eax, ebx
je 0x434ac4
cmp eax, 0x7de7cc
je 0x434ad0
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x434ab6
xor al, al
neg al
sbb eax, eax
and eax, ebp
mov ebp, eax
jmp 0x434ade
mov al, 1
neg al
sbb eax, eax
and eax, ebp
mov ebp, eax
jmp 0x434ade
xor ebp, ebp
cmp esi, ebp
je 0x434afa
dec dword [esi + 4]
jne 0x434aef
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x434afa
inc dword [ebp + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push 1
push eax
call dword [edx + 0x94]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
mov byte [esp + 0x10c], 0xf
je 0x434b28
dec dword [ecx + 4]
jne 0x434b28
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
cmp dword [eax + 0x388], ebx
je 0x434c7f
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x388]
mov esi, dword [eax]
cmp esi, ebx
je 0x434c7f
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x14]
push 0x19
push 2
mov ecx, eax
call fcn.004e50c0
mov ecx, eax
call fcn.00473060
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x434c7f
push eax
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x2dc]
call fcn.004356b0
test al, al
jne 0x434c7f
movsx ecx, byte [esi + 0x5c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00439760
mov esi, dword [eax]
cmp esi, ebx
mov ebp, esi
mov dword [esp + 0x14], ebp
je 0x434bbf
inc dword [esi + 4]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x10c], 0x11
je 0x434be8
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
cmp edx, ebx
mov dword [eax], edx
jne 0x434be8
cmp ecx, ebx
je 0x434be8
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, ebx
je 0x434c65
mov ecx, dword [0x7c67e0]
push esi
call fcn.0048eb00
mov ebp, eax
cmp ebp, ebx
je 0x434c30
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 4]
cmp eax, ebx
je 0x434c18
cmp eax, 0x7de7cc
je 0x434c24
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x434c0a
xor al, al
neg al
sbb eax, eax
and eax, ebp
mov ebp, eax
jmp 0x434c32
mov al, 1
neg al
sbb eax, eax
and eax, ebp
mov ebp, eax
jmp 0x434c32
xor ebp, ebp
cmp esi, ebp
je 0x434c4e
dec dword [esi + 4]
jne 0x434c43
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x434c4e
inc dword [ebp + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push 1
push eax
call dword [edx + 0x94]
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
mov byte [esp + 0x10c], 0xf
je 0x434c7f
dec dword [ebp + 4]
jne 0x434c7f
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, dword [edi + 0x64]
call fcn.006eb0e0
mov ecx, dword [edi + 0x60]
call fcn.006eb0e0
lea ecx, [esp + 0x54]
mov dword [esp + 0x10c], 0xffffffff
call fcn.0051ad60
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x100
ret 0xc