Function at 0x5cd560
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [0x7c67dc]
sub esp, 0x9c
push esi
call fcn.0040ff20
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov esi, eax
test esi, esi
jne 0x5cd58a
xor al, al
pop esi
add esp, 0x9c
ret
mov eax, dword [0x7d39b8]
test eax, eax
je 0x5cd59d
xor al, al
pop esi
add esp, 0x9c
ret
mov ecx, dword [0x7c67dc]
push ebx
push ebp
push edi
call fcn.0040ff20
mov ecx, dword [0x7c67dc]
mov ebx, eax
call fcn.0040ff20
mov ecx, dword [eax + 0x14]
call fcn.004e4ce0
mov edi, dword [ebx + 0x388]
test edi, edi
mov ebp, eax
je 0x5cd5ff
mov ecx, dword [ebx + 0x10]
shr ecx, 0xd
test cl, 1
je 0x5cd5ed
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xac]
test al, al
jne 0x5cd5ff
mov eax, dword [edi]
cmp byte [eax + 0x5c], 0xb
jne 0x5cd5ff
mov edx, dword [edi]
mov ecx, dword [ebx + 0x14]
push edx
call fcn.004e50c0
mov ecx, eax
call fcn.00473170
test edi, edi
mov cl, 1
je 0x5cd61b
mov eax, dword [edi]
movsx edx, byte [eax + 0x5c]
mov al, byte [edx + 0x7a8c44]
cmp al, 0x8c
jb 0x5cd619
cmp al, 0x8d
jbe 0x5cd61b
xor cl, cl
mov eax, dword [ebx + 0x10]
mov edx, eax
shr edx, 0xe
test dl, 1
jne 0x5cd639
shr eax, 0xd
test al, 1
je 0x5cd647
mov eax, dword [ebx + 0x388]
test eax, eax
je 0x5cd647
test cl, cl
je 0x5cd647
mov ecx, dword [ebx + 0x14]
call fcn.004e9170
jmp 0x5cd65d
mov eax, dword [ebx + 0x390]
test eax, eax
je 0x5cd65d
test cl, cl
jne 0x5cd65d
mov ecx, dword [ebx + 0x14]
call fcn.004e9390
mov ecx, ebx
mov dword [0x7d39b8], esi
call fcn.005264b0
mov ecx, eax
call fcn.00542130
fstp dword [0x7d395c]
mov eax, dword [esi + 0x18]
mov dword [0x7d39f8], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov byte [0x7d397a], al
mov eax, dword [esi + 0x30]
mov dword [0x7d39a8], eax
mov ecx, dword [esi + 0x34]
mov dword [0x7d39ac], ecx
mov edx, dword [esi + 0x38]
lea eax, [esi + 0x2c]
mov dword [0x7d39b0], edx
mov dword [esp + 0x18], eax
mov eax, dword [eax]
push eax
mov ecx, 0x7d39d0
call fcn.006e7cd0
xor eax, eax
mov ecx, 0x7d3a38
lea edi, [ebp + 0x58]
fld dword [edi]
add ecx, 4
fstp dword [ecx - 4]
mov dl, byte [eax + ebp + 0x38]
mov byte [eax + 0x7d3a74], dl
inc eax
add edi, 4
cmp ecx, 0x7d3a44
jl 0x5cd6c3
push 0x3f800000
mov ecx, ebx
call fcn.005264b0
mov ecx, eax
call fcn.00542030
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x50]
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x1b0]
mov edx, dword [ecx]
push str.Inv_Light
call dword [edx + 0x5c]
push eax
call fcn.004308e0
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x1b0]
mov edx, dword [ecx]
add esp, 4
push 1
push esi
call dword [edx + 0x94]
mov ecx, dword [0x7d39f8]
test ecx, ecx
je 0x5cd76d
mov eax, dword [ecx]
push esi
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x98]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5cd76d
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x5cd76d
test ecx, ecx
je 0x5cd76d
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 0x4b095440
push 0x40490fdb
lea ecx, [esp + 0x5c]
mov dword [esi + 0x30], 0x4b095445
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
call fcn.006e7da0
push 0x7de63c
lea ecx, [esp + 0x38]
call fcn.006e7cd0
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov esi, dword [eax + 0x560]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x6c]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, eax
call fcn.004a7ea0
fstp dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x6c]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, eax
call fcn.004a7ec0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x8c]
fst dword [esp + 0x38]
mov dword [esp + 0x58], ecx
fstp dword [esp + 0x48]
push eax
lea ecx, [esp + 0x60]
call fcn.006e80a0
push eax
lea ecx, [esp + 0x5c]
call fcn.006e7cd0
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.006e93d0
mov edx, dword [0x7de6cc]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x2c], edx
call fcn.004ef7f0
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
mov edi, eax
call fcn.004ef7b0
fld dword [edi + 8]
fsub dword [eax + 8]
push str..Morrowind.ini
push 0
push str.UniformScaling
fstp dword [esp + 0x20]
push str.Inventory
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x5cd873
fld dword [esp + 0x14]
fmul dword [esp + 0x10]
fmul dword [0x74b4d4]
jmp 0x5cd88b
fld dword [esp + 0x10]
fsub dword [0x746470]
fadd st(0), st(0)
fadd dword [0x74b4d0]
fmul dword [esp + 0x14]
fchs
fld dword [esp + 0x14]
mov edx, dword [0x7c67dc]
fmul dword [esp + 0x10]
mov eax, dword [edx + 0x1b4]
add eax, 0x30
mov byte [esp + 0x10], 0x92
fmul dword [0x746498]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fadd dword [0x74b4cc]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fadd dword [0x74b4cc]
mov dword [eax], ecx
fld dword [esp + 0x30]
fadd dword [0x74b4cc]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fstp dword [eax + 4]
mov dword [eax + 8], edx
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov esi, dword [eax + 0x388]
test esi, esi
je case.default.0x5cd92e
mov eax, dword [esi]
test eax, eax
je case.default.0x5cd92e
lea ecx, [eax + 4]
call fcn.004ee8b0
cmp eax, 0x50414557
je 0x5cd914
mov byte [esp + 0x10], 0x93
jmp case.default.0x5cd92e
xor eax, eax
mov eax, dword [esi]
movsx ecx, byte [eax + 0x5c]
xor eax, eax
mov al, byte [ecx + 0x7a8c44]
add eax, 0xffffff76
cmp eax, 5
ja case.default.0x5cd92e
jmp dword [eax*4 + 0x5cd9fc]
mov byte [esp + 0x10], 0x94
jmp case.default.0x5cd92e
mov byte [esp + 0x10], 0x95
mov edi, dword [esp + 0x10]
push 0
push edi
mov ecx, ebp
call fcn.00470a70
fstp dword [esp + 0x14]
mov eax, dword [ebx + 0x394]
test eax, eax
mov dword [esp + 0x10], 0
je 0x5cd978
push 2
push 0x12
mov ecx, ebp
call fcn.00470a70
fsub dword [esp + 0x14]
fstp dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push 0
push esi
push 0xffffffffffffffff
push edi
mov ecx, ebp
call fcn.00471a40
push 1
push esi
push 0xffffffffffffffff
push edi
mov ecx, ebp
call fcn.00471a40
push 2
push esi
push 0xffffffffffffffff
push edi
mov ecx, ebp
call fcn.00471a40
mov edx, dword [esp + 0x10]
push 1
push edx
push esi
push 0
push 0
mov ecx, ebp
call fcn.0046c860
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x1b0]
call fcn.006eb0e0
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x1b0]
call fcn.006eb380
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x1b0]
push 1
push 1
push esi
call fcn.006eb000
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x9c
ret