Function at 0x6372a0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x730428
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov ecx, ebx
call fcn.00583b60
xor eax, eax
mov ax, word [0x7d7718]
push 1
push fcn.00642550
mov ecx, ebx
push eax
call fcn.00588140
push 0
mov ecx, ebx
call fcn.005813c0
push 0
mov ecx, ebx
call fcn.00581400
push 1
mov eax, 0x186
push eax
push 0xffff802c
mov ecx, ebx
call fcn.00581f30
call fcn.004678f0
sub eax, 2
je 0x637315
push 0x138
jmp 0x63731a
push 0x188
mov ecx, ebx
call fcn.00581130
push 0x20
push 0x58f790
push 0xffff8043
mov ecx, ebx
call fcn.00581f30
push 0
push 0xffff80b4
mov ecx, ebx
call fcn.00588980
mov esi, eax
mov ebp, 0x3f800000
push 1
mov ecx, esi
mov dword [esi + 0x118], ebp
call fcn.00581400
push 1
mov eax, 5
push eax
push 0xffff800e
mov ecx, esi
call fcn.00581f30
push 2
mov dword [esp + 0x58], 0x3f000000
mov ecx, dword [esp + 0x58]
push ecx
push 0xffff8054
mov ecx, esi
call fcn.00581f30
xor edx, edx
mov dx, word [0x7d76f2]
push 0
push fcn.00639420
mov ecx, esi
push edx
call fcn.00588140
mov edi, eax
push 1
xor eax, eax
push eax
push 0xffff800b
mov ecx, edi
call fcn.00581f30
push 0x20
push 0x6380b0
push 0xffff8035
mov ecx, edi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x51
call fcn.0040f930
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x64], esp
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, edi
call fcn.00580d20
xor eax, eax
mov ax, word [0x7d7648]
push 0
push fcn.00639420
mov ecx, esi
push eax
call fcn.00588140
mov edi, eax
push 1
xor eax, eax
push eax
push 0xffff800b
mov ecx, edi
call fcn.00581f30
push 0x20
push 0x638030
push 0xffff8035
mov ecx, edi
call fcn.00581f30
push 0x4f
mov ecx, dword [0x7c67dc]
call fcn.0040f930
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x64], esp
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, edi
call fcn.00580d20
xor eax, eax
mov ax, word [0x7d767e]
push 0
push fcn.00639420
mov ecx, esi
push eax
call fcn.00588140
mov edi, eax
push 1
xor eax, eax
push eax
push 0xffff800b
mov ecx, edi
call fcn.00581f30
push 0x20
push 0x638070
push 0xffff8035
mov ecx, edi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x50
call fcn.0040f930
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x64], esp
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, edi
call fcn.00580d20
xor eax, eax
mov ax, word [0x7d76ba]
push 0
push fcn.00639420
mov ecx, esi
push eax
call fcn.00588140
mov esi, eax
push 1
xor eax, eax
push eax
push 0xffff800b
mov ecx, esi
call fcn.00581f30
push 0x20
push fcn.00727b50
push 0xffff8035
mov ecx, esi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x4e
call fcn.0040f930
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x64], esp
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, esi
call fcn.00580d20
push esi
call fcn.00639e40
push esi
push 0
push 0
push 0xffff8032
push esi
call fcn.00639e60
add esp, 0x18
push 0
push 0xffff80b4
mov ecx, ebx
call fcn.00588980
mov esi, eax
push 1
mov eax, 0x64
push eax
push 0xffff802c
mov ecx, esi
mov dword [esi + 0x118], ebp
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d76f0]
push 0
push fcn.00648fd0
mov ecx, esi
push eax
call fcn.00588140
push eax
mov dword [esp + 0x30], eax
call fcn.00649ca0
add esp, 4
mov edi, eax
push 0x10
mov eax, 0xffff80cc
push eax
push 0xffff8059
mov ecx, edi
call fcn.00581f30
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x78]
xor eax, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [0x7c6cdc]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
call fcn.00429d30
mov esi, eax
mov al, byte [esi]
mov byte [esp + 0x34], al
mov eax, dword [esi + 4]
test eax, eax
jne 0x6375dc
xor ecx, ecx
jmp 0x6375e4
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 4
test ecx, ecx
mov eax, ecx
jge 0x6375ec
xor eax, eax
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.00638600
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x18], ecx
je 0x637710
push 0
push fcn.0064c180
push 0xffff80b4
mov ecx, edi
call fcn.00588140
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, ecx
mov eax, dword [eax + 4]
add ecx, 0x10
test eax, eax
mov dword [esp + 0x18], ecx
jne 0x63765c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, esi
call fcn.00580d20
push 0x20
push 0x638350
push 0xffff8035
mov ecx, esi
call fcn.00581f30
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [0x7d7680]
push 1
push eax
push ecx
mov ecx, esi
call fcn.00581f30
mov ecx, esi
call fcn.00580bb0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push ecx
push str._d_x__d
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add ecx, 2
add esp, 0x10
cmp edx, eax
mov dword [esp + 0x14], ecx
jne 0x637702
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x20]
jne 0x637702
push 0
push esi
call fcn.0064cb20
push esi
push 0
push 0
push 0
push esi
call fcn.0064cb60
add esp, 0x1c
mov dword [0x7d7778], esi
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x3c]
jne 0x63762e
mov edx, dword [esp + 0x2c]
push edx
call fcn.00649ce0
mov dword [esp + 0x58], eax
mov eax, dword [0x7d7778]
add esp, 4
test eax, eax
je 0x63776c
mov ecx, dword [edi + 0x28]
test ecx, ecx
mov esi, dword [eax + 0xe0]
je 0x63774a
cmp dword [edi + 0xf0], 0xffff80cd
jne 0x63774a
call fcn.0041d1e0
jmp 0x637755
mov eax, dword [edi + 0xf0]
cdq
xor eax, edx
sub eax, edx
mov ecx, dword [esp + 0x54]
sub esi, eax
xor eax, eax
mov ax, word [0x7d8078]
push 1
push esi
push eax
call fcn.00581f30
push 0
push 0xffff80b4
mov ecx, ebx
call fcn.00588980
mov esi, eax
push 1
mov ecx, esi
mov dword [esi + 0x118], ebp
call fcn.00581400
push 0x10
mov eax, 0xffff80cc
push eax
push 0xffff8059
mov ecx, esi
call fcn.00581f30
push 1
mov eax, 5
push eax
push 0xffff800c
mov ecx, esi
call fcn.00581f30
push 1
mov eax, 5
push eax
push 0xffff800e
mov ecx, esi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x5e
call fcn.0040f930
push 0
push 0
push eax
push str.MenuVideo_RenderSlider_text
call fcn.0058df10
add esp, 4
mov ecx, esi
push eax
call fcn.00588be0
mov edi, eax
push 0xffff80e9
mov ecx, edi
call fcn.0057f5b0
push 1
mov eax, 3
push eax
push 0xffff800e
mov ecx, edi
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d76e4]
push 0
push fcn.00645eb0
push ecx
mov ecx, esi
call fcn.00588140
mov edi, eax
xor eax, eax
mov dword [edi + 0x118], ebp
mov ax, word [0x7d7fe8]
push 2
mov dword [esp + 0x58], 0x4591e000
mov edx, dword [esp + 0x58]
push edx
mov ecx, edi
push eax
call fcn.00581f30
mov ecx, dword [0x7c67dc]
fld dword [ecx + 0x144]
xor eax, eax
fsub dword [0x7468cc]
mov ax, word [0x7d8078]
push 2
mov ecx, edi
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
push edx
push eax
call fcn.00581f30
mov eax, 0x2e
push 1
xor ecx, ecx
mov cx, word [0x7d80a4]
push eax
push ecx
mov ecx, edi
call fcn.00581f30
xor edx, edx
mov dx, word [0x7d7ff8]
push 1
mov eax, 0x1d2
push eax
mov ecx, edi
push edx
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d8054]
push 0x20
push 0x638140
mov ecx, edi
push eax
call fcn.00581f30
push 0
push 0xffff80b4
mov ecx, esi
call fcn.00588980
mov edi, eax
push 1
mov ecx, edi
mov dword [edi + 0x118], ebp
call fcn.00581400
push 2
mov dword [esp + 0x58], 0xbf800000
mov ecx, dword [esp + 0x58]
push ecx
push 0xffff8054
mov ecx, edi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x5f
call fcn.0040f930
push 0
push 0
push eax
push str.near
call fcn.0058df10
add esp, 4
mov ecx, edi
push eax
call fcn.00588be0
mov ecx, dword [0x7c67dc]
push 0x60
call fcn.0040f930
push 0
push 0
push eax
push 0x7bc388
call fcn.0058df10
add esp, 4
mov ecx, edi
push eax
call fcn.00588be0
mov ecx, dword [0x7c67dc]
push 0x61
call fcn.0040f930
push 0
push 0
push eax
push str.MenuVideo_GamaSlider_text
call fcn.0058df10
add esp, 4
mov ecx, esi
push eax
call fcn.00588be0
mov edi, eax
push 1
mov eax, 5
push eax
push 0xffff800c
mov ecx, edi
call fcn.00581f30
mov eax, 3
push 1
push eax
push 0xffff800e
mov ecx, edi
call fcn.00581f30
push 0xffff80e9
mov ecx, edi
call fcn.0057f5b0
xor edx, edx
mov dx, word [0x7d7728]
push 0
push fcn.00645eb0
mov ecx, esi
push edx
call fcn.00588140
mov edi, eax
push 1
mov eax, 0x64
push eax
xor eax, eax
mov dword [edi + 0x118], ebp
mov ax, word [0x7d7fe8]
mov ecx, edi
push eax
call fcn.00581f30
mov ecx, dword [0x7c6cdc]
fld dword [ecx + 0x3c]
fmul dword [0x74646c]
fsub dword [0x746490]
call sub.MSVCRT.dll__ftol
xor edx, edx
mov dx, word [0x7d8078]
push 1
push eax
mov ecx, edi
push edx
call fcn.00581f30
push 1
mov eax, 5
push eax
xor eax, eax
mov ax, word [0x7d80a4]
mov ecx, edi
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d7ff8]
push 1
mov eax, 0x14
push eax
push ecx
mov ecx, edi
call fcn.00581f30
xor edx, edx
mov dx, word [0x7d8054]
push 0x20
push 0x638240
mov ecx, edi
push edx
call fcn.00581f30
push 0
push 0xffff80b4
mov ecx, esi
call fcn.00588980
mov edi, eax
push 1
mov ecx, edi
mov dword [edi + 0x118], ebp
call fcn.00581400
push 2
mov dword [esp + 0x58], 0xbf800000
mov eax, dword [esp + 0x58]
push eax
push 0xffff8054
mov ecx, edi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x63
call fcn.0040f930
push 0
push 0
push eax
push str.light
call fcn.0058df10
add esp, 4
mov ecx, edi
push eax
call fcn.00588be0
mov ecx, dword [0x7c67dc]
push 0x62
call fcn.0040f930
push 0
push 0
push eax
push str.dark
call fcn.0058df10
add esp, 4
mov ecx, edi
push eax
call fcn.00588be0
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, 0x80
seta al
test al, al
jne 0x637b51
mov eax, dword [0x7c67dc]
mov byte [eax + 0xe4], 0
mov ecx, dword [0x7c67dc]
mov dword [ecx + 0x84], 0
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x2dc]
push 0
call fcn.004360f0
mov ecx, dword [0x7c67dc]
push 0x34c
call fcn.0040f930
push 0
push 0
push eax
push str.MenuVideo_Warning
call fcn.0058df10
add esp, 4
jmp 0x637db9
mov ecx, dword [0x7c67dc]
push 0x1c5
call fcn.0040f930
push 0
push 0
push eax
push str.MenuVideo_ShadowSlider_text
call fcn.0058df10
add esp, 4
mov ecx, esi
push eax
call fcn.00588be0
mov edi, eax
push 1
mov eax, 5
push eax
push 0xffff800c
mov ecx, edi
call fcn.00581f30
push 1
mov eax, 3
push eax
push 0xffff800e
mov ecx, edi
call fcn.00581f30
push 0xffff80e9
mov ecx, edi
call fcn.0057f5b0
push str..Morrowind.ini
push 0
push str.Number_of_Shadows
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [0x7c67dc]
cmp dword [ecx + 0x84], eax
mov dword [esp + 0x54], eax
jbe 0x637c3a
mov ecx, dword [ecx + 0x2dc]
mov word [ecx + 0x14], ax
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x84]
test ecx, ecx
jne 0x637c14
test eax, eax
jle 0x637c12
mov dword [edx + 0x84], eax
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x2dc]
push 1
call fcn.004360f0
jmp 0x637c3a
test ecx, ecx
jbe 0x637c34
test eax, eax
jne 0x637c34
mov dword [edx + 0x84], eax
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x2dc]
push eax
call fcn.004360f0
jmp 0x637c3a
mov dword [edx + 0x84], eax
xor edx, edx
mov dx, word [0x7d7764]
push 0
push fcn.00645eb0
mov ecx, esi
push edx
call fcn.00588140
mov edi, eax
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov dword [edi + 0x118], ebp
mov cx, word [0x7d7fe8]
push 1
push eax
push ecx
mov ecx, edi
call fcn.00581f30
mov edx, dword [0x7c67dc]
mov eax, dword [edx + 0x84]
push 1
push eax
xor eax, eax
mov ax, word [0x7d8078]
mov ecx, edi
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d80a4]
mov eax, 1
push eax
push eax
push ecx
mov ecx, edi
call fcn.00581f30
xor edx, edx
mov dx, word [0x7d7ff8]
push 1
mov eax, 2
push eax
mov ecx, edi
push edx
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d8054]
push 0x20
push 0x638290
mov ecx, edi
push eax
call fcn.00581f30
push 0
push 0xffff80b4
mov ecx, esi
call fcn.00588980
mov esi, eax
push 1
mov ecx, esi
mov dword [esi + 0x118], ebp
call fcn.00581400
push 2
mov dword [esp + 0x58], 0xbf800000
mov ecx, dword [esp + 0x58]
push ecx
push 0xffff8054
mov ecx, esi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x47
call fcn.0040f930
mov edx, 0x7bc328
test edx, edx
mov edi, eax
jne 0x637d3a
push 0x7b3b78
call fcn.0058df10
add esp, 4
jmp 0x637d5d
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x68], esp
lea eax, [esp + 0x68]
push eax
push 0x7bc328
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
call fcn.0057b290
add esp, 0x14
push 0
push 0
push edi
push eax
mov ecx, esi
call fcn.00588be0
mov ecx, dword [0x7c67dc]
push 0x48
call fcn.0040f930
mov ecx, str.high
test ecx, ecx
mov edi, eax
jne 0x637d91
push 0x7b3b78
call fcn.0058df10
add esp, 4
jmp 0x637db4
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x68], esp
lea edx, [esp + 0x27]
push edx
push str.high
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
call fcn.0057b290
add esp, 0x14
push 0
push 0
push edi
push eax
mov ecx, esi
call fcn.00588be0
push 0
push 0xffff80b4
mov ecx, ebx
call fcn.00588980
mov esi, eax
push 1
mov ecx, esi
mov dword [esi + 0x118], ebp
call fcn.00581400
push 0x10
mov eax, 0xffff80cc
push eax
push 0xffff8059
mov ecx, esi
call fcn.00581f30
push 2
mov dword [esp + 0x58], 0x3f800000
mov eax, dword [esp + 0x58]
push eax
push 0xffff8054
mov ecx, esi
call fcn.00581f30
push 2
mov dword [esp + 0x58], 0x3f800000
mov ecx, dword [esp + 0x58]
push ecx
push 0xffff8055
mov ecx, esi
call fcn.00581f30
xor edx, edx
mov dx, word [0x7d76b8]
push 0
push fcn.00639420
mov ecx, esi
push edx
call fcn.00588140
push 0x20
mov esi, eax
push 0x6380f0
push 0xffff8035
mov ecx, esi
mov dword [esp + 0x60], esi
call fcn.00581f30
push 1
mov eax, 5
push eax
push 0xffff800b
mov ecx, esi
call fcn.00581f30
push 1
mov eax, 0x2a
push eax
push 0xffff800c
mov ecx, esi
call fcn.00581f30
mov ecx, dword [0x7c67dc]
push 0x1a
call fcn.0040f930
mov cl, byte [esp + 0x54]
sub esp, 0x10
mov ebp, esp
mov byte [ebp], cl
xor ecx, ecx
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov edi, eax
or ecx, 0xffffffff
mov dword [esp + 0x3c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x40], esp
dec ecx
mov edi, ecx
push 1
mov dword [esp + 0x3c], edi
push edi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x637efb
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x3c]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x64]
mov eax, edx
mov dword [ebp + 8], eax
mov ebp, dword [ebp + 4]
add ebp, eax
mov byte [ebp], 0
mov ecx, esi
call fcn.00580d20
push 1
mov ecx, ebx
call fcn.00583b70
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, eax
mov dword [esp + 0x4c], 0xffffffff
mov edi, eax
je 0x637f36
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x637f21
mov esi, dword [esp + 0x38]
push esi
call fcn.00727530
mov ecx, dword [esp + 0x48]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret