Function at 0x446290
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4444
call fcn.004a5b80
push ebx
push ebp
mov ebp, ecx
mov edx, dword [0x4e5bb8]
push esi
push edi
mov cl, byte [ebp + 0xa0]
mov al, byte [ebp + 0x14c]
inc cl
push edx
imul cl
mov byte [esp + 0x17], al
mov eax, dword [0x4e6150]
push 2
push str.WriteScriptSectorNum
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea esi, [ebp + 0x124]
mov bl, al
push str.H27UCG8T2MYR
mov ecx, esi
mov byte [esp + 0x15], bl
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x44632f
push str.H27UBG8T2BTR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x44632f
push str.H27UCG8T2ATR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x44632f
push str.H27UBG8T2CTR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x44632f
push str.H27UAG8T2CTR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x446341
cmp bl, 0xa
mov byte [esp + 0x11], bl
ja 0x44633d
mov byte [esp + 0x11], 0xa
mov bl, byte [esp + 0x11]
mov al, byte [ebp + 0x110]
lea ecx, [esp + 0x254]
push ecx
mov edx, dword [ebp + 0x1c]
push 1
push 0
push 0
push 0
test al, 2
push 0
push 0
setne al
push 0
push 0
inc eax
push 0xfa
push edx
mov byte [esp + 0x47], al
mov byte [esp + 0x3e], 0
call fcn.00482460
add esp, 0x2c
mov ecx, ebp
push 1
push 0xff
push 1
push 1
call fcn.00435a90
push 0
push 1
push 1
push 1
push 0
push 0
mov ecx, ebp
call fcn.0043e690
mov eax, dword [ebp + 8]
push 0xff
push 0
push 0
mov cl, byte [eax + 0xa1]
mov dl, byte [eax + 0xa0]
push ecx
push edx
mov ecx, ebp
call fcn.00436460
test bl, bl
mov byte [esp + 0x28], 0
jbe 0x44676a
mov ebx, dword [esp + 0x28]
and ebx, 0xff
lea eax, [ebx + ebx*4]
lea esi, [ebp + eax*4]
mov al, byte [ebp + eax*4 + 0x6f8]
cmp al, 0xff
je 0x44677a
mov al, byte [ebp + 0x24]
mov cl, byte [esp + 0x13]
cmp al, 0x90
mov byte [esp + 0x24], cl
jne 0x446428
mov al, byte [ebp + 0xa0]
test al, al
jne 0x446415
mov eax, dword [ebp + 0x130]
test eax, eax
je 0x446428
push 0
mov ecx, ebp
call fcn.0044a500
mov al, byte [esp + 0x13]
shr al, 1
mov byte [esp + 0x24], al
mov edi, dword [esp + 0x24]
mov ax, word [esi + 0x6fc]
mov cx, word [esi + 0x6fa]
lea edx, [esp + 0x254]
push 0
push edx
mov dl, byte [esi + 0x6f8]
push edi
push 0
push eax
push ecx
push edx
mov ecx, ebp
call fcn.00445480
cmp byte [ebp + 0x24], 0x90
jne 0x44647a
mov al, byte [ebp + 0xa0]
test al, al
jne 0x446471
mov eax, dword [ebp + 0x130]
test eax, eax
je 0x44647a
push 1
mov ecx, ebp
call fcn.0044a500
mov al, byte [esp + 0x24]
xor cl, cl
test al, al
mov byte [esp + 0x3c], cl
jbe 0x4464fb
and edi, 0xff
shl edi, 4
mov edx, edi
mov eax, dword [esp + 0x3c]
and eax, 0xff
mov esi, eax
add eax, edx
shl eax, 5
shl esi, 9
test byte [esp + eax + 0x254], 2
lea esi, [esp + esi + 0x254]
jne 0x4464e9
cmp byte [esi], 0xd
jne 0x4464e9
cmp byte [esi + 1], 6
jne 0x4464e9
cmp byte [esi + 2], 5
jne 0x4464e9
cmp byte [esi + 3], 6
jne 0x4464e9
mov eax, ebx
mov ecx, 0x80
shl eax, 9
lea edi, [eax + ebp + 0xa98]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x446528
mov cl, byte [esp + 0x3c]
mov al, byte [esp + 0x1b]
add cl, al
mov al, byte [esp + 0x24]
cmp cl, al
mov byte [esp + 0x3c], cl
jb 0x446493
lea ecx, [ebx + ebx*4 + 0x1c2]
cmp dword [ebp + ecx*4], 0
jne 0x446799
mov al, byte [esp + 0x12]
mov cl, byte [esp + 0x11]
inc al
cmp al, cl
mov byte [esp + 0x12], al
jae 0x4467b0
jmp 0x446754
xor edx, edx
push 0x4200
mov dword [esp + 0x31], edx
mov byte [esp + 0x30], 0
mov word [esp + 0x35], dx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x1080
xor eax, eax
mov dword [esp + 0x24], edi
shl ebx, 9
rep stosd dword es:[edi], eax
lea esi, [ebx + ebp + 0xa98]
mov ecx, 0x80
lea edi, [esp + 0x58]
mov byte [esp + 0x20], al
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x6c]
add esp, 4
cmp al, 0xc
mov byte [esp + 0x38], 0x14
jne 0x44667c
mov eax, 0x14
mov cl, byte [esp + eax + 0x55]
mov dl, cl
and cl, 0xf
shr dl, 4
mov bl, cl
mov cl, byte [esp + eax + 0x56]
mov byte [esp + 0x14], dl
mov dl, byte [esp + eax + 0x57]
mov byte [esp + 0x4c], cl
mov byte [esp + 0x48], dl
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x50], bl
test cl, cl
jbe 0x4465d1
mov ecx, edx
lea eax, [esp + eax + 0x58]
and ecx, 0xff
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
and ecx, 0xff
shl ecx, 9
add ecx, esi
push ecx
mov ecx, dword [esp + 0x36]
push eax
mov eax, dword [esp + 0x39]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3f]
push ecx
mov ecx, dword [esp + 0x42]
push eax
mov eax, dword [esp + 0x45]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x38]
push eax
push edx
push ecx
mov ecx, ebp
call fcn.00445ca0
mov dl, byte [esp + 0x1c]
xor al, al
add dl, bl
mov byte [esp + 0x44], al
test bl, bl
mov byte [esp + 0x1c], dl
jbe 0x446663
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
shl ecx, 4
mov edx, dword [esp + 0x44]
and edx, 0xff
add edx, ecx
shl edx, 5
test byte [edx + esi], 2
jne 0x4467c7
inc al
cmp al, bl
mov byte [esp + 0x44], al
jb 0x446640
add byte [esp + 0x38], 0xc
mov eax, dword [esp + 0x38]
and eax, 0xff
cmp byte [esp + eax + 0x54], 0xc
je 0x446583
push 0x4200
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov ecx, 0x1080
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xf4]
mov cl, byte [ebp + 0xf2]
mov dl, byte [ebp + 0xec]
add esp, 4
push 0x80
push eax
push ecx
push edx
mov ecx, ebp
call fcn.00435a90
mov al, byte [ebp + 0xf2]
mov cl, byte [ebp + 0xec]
push ebx
push 0x80
push eax
push ecx
mov ecx, ebp
call 0x446820
push 1
push 0xff
push 1
push 1
mov ecx, ebp
call fcn.00435a90
mov al, byte [esp + 0x1c]
mov byte [esp + 0x40], 0
test al, al
jbe 0x446736
mov ecx, dword [esp + 0x40]
xor esi, esi
and ecx, 0xff
shl ecx, 9
mov edi, dword [esp + 0x20]
mov edx, esi
and edx, 0xffff
lea eax, [edx + ecx]
mov dl, byte [eax + ebx]
cmp dl, byte [eax + edi]
jne 0x4467eb
inc esi
cmp si, 0x200
jb 0x446701
mov al, byte [esp + 0x40]
mov cl, byte [esp + 0x1c]
inc al
cmp al, cl
mov byte [esp + 0x40], al
jb 0x4466f2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x446747
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x446754
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x11]
inc al
cmp al, cl
mov byte [esp + 0x28], al
jb 0x4463d2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4444
ret
mov al, byte [esp + 0x28]
test al, al
jne 0x44676a
lea eax, [esp + 0x14]
push 0x4d8340
push eax
mov dword [esp + 0x1c], 0x41000
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x14]
push 0x4d8340
push ecx
mov dword [esp + 0x1c], 0x41000
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0x14]
push 0x4d8340
push edx
mov dword [esp + 0x1c], 0x41000
call sub.MSVCRT.dll__CxxThrowException
test esi, esi
je 0x4467d4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea eax, [esp + 0x14]
push 0x4d8340
push eax
mov dword [esp + 0x1c], 0x41000
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4467fc
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x446809
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
push 0x4d8340
push ecx
mov dword [esp + 0x1c], 0x41000
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
push 0x4a8fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0
push ebp
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0043ff30
test eax, eax
jne 0x446885
lea eax, [esp + 0x2c]
push 0x4d8340
push eax
mov dword [esp + 0x34], 0x40100
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
push ebx
push 1
mov ecx, esi
call fcn.0044a4b0
push eax
push edi
mov ecx, esi
call fcn.00440170
push ebp
push ebx
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004a57ee
mov ecx, esi
call fcn.0044b180
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x10