Function at 0x484f60
Capabilities:
Read .ini file
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
je 0x485483
mov eax, dword [esi + 0xac]
test eax, eax
jne 0x485483
mov byte [esi + 0xb518], 1
push 0
push 0
call fcn.0048f5f0
mov ecx, esi
mov byte [0x7c9a88], 0
mov byte [0x7c9c90], 0
call fcn.0048eff0
mov eax, dword [0x7c9c94]
test eax, eax
jne 0x485483
mov dword [0x7c9c94], 1
mov ebx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
dec ebx
dec eax
mov dword [esp + 0x20], eax
mov al, byte [ebp + 8]
test al, al
mov dword [esp + 0x2c], ebx
je 0x48509e
xor eax, eax
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea ecx, [ecx + eax*2]
add eax, ecx
mov ecx, dword [esi + eax*4 + 4]
call fcn.00483410
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
cmp ecx, 3
mov dword [esp + 0x14], ecx
jl 0x484ff1
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x484feb
mov eax, dword [0x7c9b48]
xor edi, edi
test eax, eax
jbe 0x485052
mov edx, dword [esi + 0xb4]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x485048
mov ecx, dword [esi]
push eax
call fcn.004baaf0
mov eax, dword [esi + 0xb4]
mov dword [eax + edi*4], 0
mov eax, dword [0x7c9b48]
inc edi
cmp edi, eax
jb 0x485026
push 0
mov ecx, esi
call fcn.0048eb70
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x20]
add edx, eax
push edx
lea edx, [ecx + ebx]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00485880
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x485069
inc ecx
cmp ecx, 3
mov dword [esp + 0x10], ecx
jl 0x485063
jmp 0x48533c
xor eax, eax
mov ecx, 9
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov ecx, 9
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
xor edx, edx
mov dword [esp + 0x14], edx
lea eax, [edx + ecx*2]
lea edi, [ecx + eax]
mov eax, dword [esi + edi*4 + 4]
cmp dword [eax], 1
jne 0x4850fd
mov ebx, dword [eax + 4]
mov ecx, ebx
call fcn.004db9d0
mov ecx, ebx
mov dword [esp + edi*8 + 0x80], eax
call fcn.004db9f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + edi*8 + 0x84], eax
jmp 0x485110
mov eax, DirectSoundCreate
mov dword [esp + edi*8 + 0x80], eax
mov dword [esp + edi*8 + 0x84], eax
inc edx
cmp edx, 3
mov dword [esp + 0x14], edx
jl 0x4850c5
inc ecx
cmp ecx, 3
mov dword [esp + 0x10], ecx
jl 0x4850bf
xor eax, eax
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea edx, [ecx + eax*2]
add edx, eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
add ecx, edx
xor edi, edi
lea edx, [esp + 0x84]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
xor ecx, ecx
lea ebx, [edi + ecx]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
add ebx, eax
cmp dword [edx - 4], ebx
jne 0x485170
mov ebx, dword [esp + 0x34]
cmp dword [edx], ebx
je 0x485196
inc ecx
add edx, 8
cmp ecx, 3
jl 0x485156
inc dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add edx, 0x18
add edi, 3
cmp edi, 9
mov dword [esp + 0x24], edx
jge 0x485239
jmp 0x485154
mov edi, dword [esp + 0x28]
mov edx, dword [esi + edi*4 + 4]
test edx, edx
jne 0x4851b6
mov eax, dword [esp + edi*4 + 0x38]
mov dword [esi + edi*4 + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + edi*4 + 0x38], 0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + ebx*4 + 0x5c]
cmp edx, 0xffffffff
je 0x4851d2
mov ebx, edx
mov edx, dword [esp + ebx*4 + 0x5c]
cmp edx, 0xffffffff
mov dword [esp + 0x1c], ebx
jne 0x4851c3
mov edx, dword [esp + ebx*4 + 0x38]
test edx, edx
lea ebx, [esp + ebx*4 + 0x38]
jne 0x485212
mov edx, dword [esp + 0x18]
lea ecx, [ecx + edx*2]
add edx, ecx
lea ecx, [esi + edx*4 + 4]
mov edx, dword [ecx]
mov dword [ecx], 0
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + eax*2]
add eax, ecx
mov ecx, dword [esi + eax*4 + 4]
lea eax, [esi + eax*4 + 4]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + edi*4 + 0x5c], ecx
mov dword [eax], edx
jmp 0x485251
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + eax*2]
add eax, ecx
mov ecx, dword [esi + eax*4 + 4]
lea eax, [esi + eax*4 + 4]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + edi*4 + 0x38], 0
mov dword [esp + edi*4 + 0x5c], ecx
mov dword [eax], edx
jmp 0x485251
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + ecx*4 + 4]
test edx, edx
je 0x485255
mov dword [esp + ecx*4 + 0x38], edx
mov dword [esi + ecx*4 + 4], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 3
mov dword [esp + 0x14], ecx
jl 0x485130
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x48512a
xor ecx, ecx
mov dword [esp + 0x10], ecx
xor edx, edx
mov dword [esp + 0x14], edx
lea edi, [edx + ecx*2]
mov eax, ecx
add eax, edi
mov eax, dword [esp + eax*4 + 0x38]
test eax, eax
je 0x48529f
mov ecx, eax
call fcn.00483410
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc edx
cmp edx, 3
mov dword [esp + 0x14], edx
jl 0x485281
inc ecx
cmp ecx, 3
mov dword [esp + 0x10], ecx
jl 0x48527b
push 1
mov ecx, esi
call fcn.0048eb70
xor ecx, ecx
mov dword [esp + 0x10], ecx
xor edx, edx
mov dword [esp + 0x14], edx
lea eax, [edx + ecx*2]
add eax, ecx
mov edi, dword [esi + eax*4 + 4]
test edi, edi
jne 0x4852e5
mov ecx, dword [esp + eax*4 + 0x38]
mov dword [esi + eax*4 + 4], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc edx
cmp edx, 3
mov dword [esp + 0x14], edx
jl 0x4852c8
inc ecx
cmp ecx, 3
mov dword [esp + 0x10], ecx
jl 0x4852c2
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x14], eax
lea edx, [eax + ebx]
push edx
lea edx, [ecx + edi]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00485880
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x48530d
inc ecx
cmp ecx, 3
mov dword [esp + 0x10], ecx
jl 0x485307
xor edi, edi
mov ecx, esi
call fcn.0048e150
push edi
mov ecx, esi
call fcn.00484e50
mov ecx, esi
mov byte [0x7c9c91], 1
call fcn.0048ac30
mov ecx, esi
call fcn.00485490
mov ecx, dword [esi + 0x94]
push 1
push edi
push edi
call fcn.006eb000
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 2
mov ecx, esi
call fcn.004901f0
test al, al
je 0x485433
push str..Morrowind.ini
push edi
push str.DontThreadLoad
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
je 0x485423
mov ecx, dword [esi + 0xb538]
push str.TES::Resume_Thread
call fcn.00693f00
mov al, byte [esi + 0xb511]
test al, al
jne 0x485411
mov edx, dword [0x7c9b30]
mov eax, dword [esi + 0xb504]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0xb504]
push ecx
push str.Resuming_Background_Thread__d_n
call fcn.006e9a00
add esp, 8
mov byte [esi + 0xb518], 0
mov byte [esi + 0xb511], 1
mov ecx, dword [esi + 0xb538]
call fcn.00693f10
mov edx, dword [esi + 0xb504]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x48541c
mov ecx, dword [esi + 0xb538]
call fcn.00693f10
mov byte [esi + 0xb50c], 1
mov eax, dword [0x7c9a94]
push edi
push eax
mov ecx, esi
call fcn.0048f5f0
jmp 0x485460
mov eax, dword [esi + 0xb4f0]
cmp eax, edi
je 0x485445
cmp eax, dword [esi + 0xb4f4]
jae 0x48544b
mov dword [esi + 0xb4f4], edi
cmp eax, edi
je 0x485460
mov dword [esi + 0xb4f0], edi
mov dword [esi + 0xb4f4], edi
call fcn.005deea0
push edi
mov ecx, esi
call fcn.00488950
mov ecx, esi
call fcn.0048d930
mov ecx, esi
call fcn.00485c50
mov ecx, dword [esi]
call fcn.004b8940
mov dword [0x7c9c94], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4