Function at 0x483620
Capabilities:
Create thread
Read .ini file
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x72b2ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
push fcn.0047e280
push fcn.0047e1e0
mov esi, ecx
push 0x900
push 0x14
lea eax, [esi + 0xc0]
push eax
mov dword [esp + 0x20], esi
call fcn.007276b0
xor eax, eax
xor ebx, ebx
mov ecx, 0x2d56
mov edi, esi
push 0x24
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x48368f
mov ecx, eax
call fcn.00693ed0
jmp 0x483691
xor eax, eax
push 0x24
mov byte [esp + 0x20], bl
mov dword [esi + 0xb534], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 2
je 0x4836bb
mov ecx, eax
call fcn.00693ed0
jmp 0x4836bd
xor eax, eax
push ebp
mov edi, 0x10
push edi
mov byte [esp + 0x24], bl
mov dword [esi + 0xb538], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
cmp ebp, ebx
mov byte [esp + 0x20], 3
je 0x48372c
push 0x94
mov dword [ebp], 0x74784c
mov dword [ebp + 8], 0x25
mov dword [ebp + 4], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 8]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0xc], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp], 0x747838
mov edi, 0x10
jmp 0x48372e
xor ebp, ebp
push 0xb3ac
mov byte [esp + 0x24], bl
mov dword [esi + 0xb4e8], ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 4
je 0x48375b
mov ecx, eax
call fcn.004b7900
jmp 0x48375d
xor eax, eax
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, eax
mov byte [esp + 0x24], bl
mov dword [esi], eax
call fcn.004babe0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..Morrowind.ini
push 0x19
push str.Exterior_Cell_Buffer
push str.General
call ebp
push str..Morrowind.ini
push 5
push str.Interior_Cell_Buffer
push str.General
mov dword [0x7c9b48], eax
call ebp
cmp dword [0x7c9b48], edi
mov dword [0x7c9b10], eax
jae 0x4837b3
mov dword [0x7c9b48], edi
cmp eax, 1
jae 0x4837c2
mov eax, 1
mov dword [0x7c9b10], eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0xb0], eax
mov eax, dword [0x7c9b48]
lea ecx, [eax*4]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0xb4], eax
mov edx, dword [0x7c9b48]
lea eax, [edx - 9]
add esp, 8
cmp eax, edi
mov dword [esi + 0xb550], eax
jle 0x483809
mov dword [esi + 0xb550], edi
mov edi, dword [esi + 0xb550]
mov eax, edi
shl eax, 5
add eax, edi
lea ecx, [edi + eax*2]
lea edx, [ecx*4 + 4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x20], 5
je 0x483853
push fcn.00412a10
push 0x412890
push edi
lea ebp, [eax + 4]
push 0x10c
push ebp
mov dword [eax], edi
call fcn.007276b0
jmp 0x483855
xor ebp, ebp
mov dword [esi + 0xb554], ebp
mov eax, dword [esi + 0xb550]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x20], bl
jle 0x48388f
xor ebp, ebp
mov eax, dword [esi + 0xb554]
mov ecx, ebp
push 1
add ecx, eax
call fcn.004128a0
mov eax, dword [esi + 0xb550]
inc edi
add ebp, 0x10c
cmp edi, eax
jl 0x48386d
mov ecx, dword [0x7c9b10]
xor eax, eax
cmp ecx, ebx
jbe 0x4838af
mov ecx, dword [esi + 0xb0]
mov dword [ecx + eax*4], ebx
mov ecx, dword [0x7c9b10]
inc eax
cmp eax, ecx
jb 0x48389b
mov ecx, dword [0x7c9b48]
xor eax, eax
cmp ecx, ebx
jbe 0x4838cf
mov edx, dword [esi + 0xb4]
mov dword [edx + eax*4], ebx
mov ecx, dword [0x7c9b48]
inc eax
cmp eax, ecx
jb 0x4838bb
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, DirectSoundCreate
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xb4c0], eax
mov dword [esi + 0xb4c4], eax
mov dword [esi + 0xb4c8], eax
mov dword [esi + 0xb4cc], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x90], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x94], edx
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xb504], ebx
mov dword [esi + 0xb4fc], ebx
mov byte [esi + 0xb50c], bl
mov byte [esi + 0xb518], bl
mov ecx, 0x7cb478
mov dword [esi + 0xb548], ebx
mov dword [esi + 0xb54c], ebx
mov dword [esi + 0xb540], ebx
mov dword [esi + 0xb544], ebx
mov byte [esi + 0xb53c], 1
call fcn.004d51b0
push str..Morrowind.ini
push 0x200
mov edi, eax
push edi
push 0x78a170
push str.ThreadPriority
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [0x7c9a94]
mov dword [0x7c9b30], eax
mov eax, 9
add esp, 4
cmp ecx, eax
jae 0x4839bc
mov dword [0x7c9a94], eax
lea edi, [esi + 4]
mov dword [esp + 0x28], 3
mov ebp, 3
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x4839e4
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x4839e6
xor eax, eax
push 0x10c
mov dword [edi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x20], 6
je 0x483a0c
push ebx
mov ecx, eax
call fcn.00412940
jmp 0x483a0e
xor eax, eax
mov ecx, dword [edi]
add edi, 4
dec ebp
mov byte [esp + 0x20], bl
mov dword [ecx + 8], eax
jne 0x4839cc
dec dword [esp + 0x28]
jne 0x4839c7
lea edi, [esi + 0x28]
mov dword [esp + 0x28], 5
mov ebp, 5
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x483a4b
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x483a4d
xor eax, eax
mov dword [edi], eax
add edi, 4
dec ebp
jne 0x483a33
dec dword [esp + 0x28]
jne 0x483a2e
push 0x14
mov dword [0x7c952c], 0x78a150
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x20], 7
pop ebp
je 0x483a86
mov ecx, eax
call fcn.0047e1e0
jmp 0x483a88
xor eax, eax
mov dword [esi + 0xb4d0], eax
push 0x14
mov byte [esp + 0x20], bl
mov dword [0x7c952c], 0x78a13c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x1c], 8
je 0x483abc
mov ecx, eax
call fcn.0047e1e0
jmp 0x483abe
xor eax, eax
push 0x14
mov byte [esp + 0x20], bl
mov dword [esi + 0xb4d4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x1c], 9
je 0x483ae8
mov ecx, eax
call fcn.0047e1e0
jmp 0x483aea
xor eax, eax
mov ecx, esi
mov byte [esp + 0x1c], bl
mov dword [esi + 0xb4d8], eax
mov byte [esi + 0xb4e4], bl
call fcn.00484120
push str..Morrowind.ini
push 0xffffffffffffffff
push str.ThreadSleepTime
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0xb51c], eax
mov dword [esi + 0xb514], ebx
mov byte [esi + 0xb510], bl
mov byte [esi + 0xb511], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [esi + 0xb508], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0xb500], eax
lea eax, [esi + 0xb4fc]
push eax
push ebx
push ebx
push 0x48fc90
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xb504], eax
jne 0x483b75
push str.Could_not_create_a_thread_for_loading_cells._r_n
call fcn.00477400
add esp, 4
mov ecx, dword [esi + 0xb538]
push str.TES::Resume_Thread
call fcn.00693f00
cmp byte [esi + 0xb511], bl
jne 0x483bdc
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], bl
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 0x483be7
mov ecx, dword [esi + 0xb538]
call fcn.00693f10
mov byte [esi + 0xb524], 1
mov byte [esi + 0xb530], 1
mov byte [esi + 0xb50f], bl
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x18