Function at 0x45e390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a95c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdac
mov eax, dword [0x4e5bb8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov ecx, dword [0x4e6168]
push eax
push 2
push str.WriteScriptSectorNum
push ecx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea esi, [ebx + 0x124]
push str.H27UCG8T2MYR
mov ecx, esi
mov byte [ebp - 0x11], al
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x45e431
push str.H27UBG8T2BTR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x45e431
push str.H27UCG8T2ATR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x45e431
push str.H27UBG8T2CTR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x45e431
push str.H27UAG8T2CTR
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x45e443
mov al, byte [ebp - 0x11]
cmp al, 0xa
jbe 0x45e43d
mov byte [ebp - 0x11], al
jmp 0x45e446
mov byte [ebp - 0x11], 0xa
jmp 0x45e456
mov al, byte [ebp - 0x11]
cmp al, 0x10
ja 0x45ea94
cmp al, 1
jb 0x45ea94
mov ecx, 0x10
or eax, 0xffffffff
lea edi, [ebp - 0xa8]
mov dx, word [ebx + 0x148]
rep stosd dword es:[edi], eax
mov ax, word [ebx + 0x14a]
lea ecx, [ebp - 0xdb8]
mov word [ebp - 0x60], ax
mov al, byte [ebx + 0xa0]
inc al
mov word [ebp - 0x40], dx
imul byte [ebx + 0x14c]
mov byte [ebp - 0x4c], al
mov ax, word [ebx + 0x26]
mov edx, dword [ebx]
push eax
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x22]
lea eax, [ebp - 0x21]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov cl, byte [ebx + 0xa0]
test cl, cl
setne al
inc eax
imul byte [ebx + 0x14c]
mov byte [ebp - 0x28], al
mov al, byte [ebx + 0x24]
cmp al, 0x92
je 0x45e4d9
cmp al, 0x90
je 0x45e4d9
cmp al, 0x96
je 0x45e4d9
test byte [ebx + 0x110], 8
je 0x45e4ea
test cl, cl
jne 0x45e4e7
mov eax, dword [ebx + 0x130]
test eax, eax
je 0x45e4ea
shr byte [ebp - 0x28], 1
test byte [ebx + 0x110], 2
mov al, byte [ebp - 0x13]
je 0x45e4fb
shl al, 1
mov byte [ebp - 0x13], al
cmp byte [ebp - 0x28], al
jb 0x45e503
mov byte [ebp - 0x28], al
mov dl, byte [ebp - 0x11]
xor al, al
mov byte [ebp - 0x20], al
mov byte [ebp - 0x12], al
cmp byte [ebp - 0x12], 3
jae 0x45ea7b
cmp al, dl
je 0x45ea7b
xor cl, cl
mov byte [ebp - 0x18], cl
cmp cl, byte [ebp - 0x21]
jae 0x45ea73
cmp al, dl
je 0x45ea73
cmp cl, byte [ebx + 0x34]
jae 0x45ea5d
mov byte [ebp - 0x3c], 0
mov cl, byte [ebp - 0x3c]
mov al, byte [ebp - 0x22]
cmp cl, al
jae 0x45ea5d
mov edx, dword [ebp - 0x3c]
xor esi, esi
mov si, word [ebx + 0x14a]
and edx, 0xff
mov edi, dword [ebp - 0x60]
mov ecx, dword [ebp + edx*4 - 0xdb8]
xor edx, edx
mov eax, ecx
and edi, 0xffff
div esi
xor edx, edx
mov esi, eax
mov eax, ecx
div edi
push esi
mov ecx, ebx
mov edi, edx
mov dword [ebp - 0x34], edi
call fcn.0043b2f0
mov esi, eax
cmp si, 0xffff
mov dword [ebp - 0x50], esi
je 0x45ea24
cmp byte [ebx + 0x152], 0xa3
jne 0x45e5c2
mov eax, edi
and eax, 0xffff
and eax, 0x80000003
jns 0x45e5ba
dec eax
or eax, 0xfffffffc
inc eax
jne 0x45ea24
jmp 0x45e611
cmp di, word [ebx + 0x148]
jae 0x45ea24
push edi
mov ecx, ebx
call fcn.0044d1c0
test eax, eax
jne 0x45ea24
cmp byte [ebx + 0x152], 0xc
jne 0x45e611
push 0
push edi
mov ecx, ebx
call fcn.00479e80
cmp al, 1
jb 0x45e611
mov ecx, edi
and ecx, 0xffff
and ecx, 0x80000001
jns 0x45e60b
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x45ea24
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x16c]
and edx, 0xff
mov eax, esi
imul ecx, edx
mov edx, dword [ebp + 0xc]
and eax, 0xffff
add ecx, eax
mov dword [ebp - 0x30], eax
cmp byte [ecx + edx], 0xf0
jae 0x45ea24
lea eax, [ebp - 0x19]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x38]
push ecx
push edx
push esi
push eax
mov ecx, ebx
call fcn.0043dfd0
mov ecx, dword [ebp - 0x2c]
cmp cx, 0x3ff
je 0x45ea24
cmp cx, 0x7ff
je 0x45ea24
cmp byte [ebp - 0x12], 1
ja 0x45e70d
mov al, byte [ebp - 0x19]
test al, al
jne 0x45ea24
test di, di
je 0x45e694
cmp byte [ebx + 0x12e], 2
je 0x45ea24
mov esi, dword [ebp - 0x38]
and ecx, 0xffff
mov edx, esi
mov edi, ecx
and edx, 0xff
shr edi, 3
mov edx, dword [ebx + edx*4 + 0x19c]
and ecx, 0x80000007
jns 0x45e6be
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 1
shl eax, cl
test byte [edx + edi], al
jne 0x45ea24
mov al, byte [ebx + 0xf2]
test al, 4
jne 0x45e6dc
cmp al, 2
jne 0x45e712
mov edi, dword [ebp - 0x34]
xor eax, eax
cmp word [ebp - 0x40], ax
jbe 0x45e700
mov ecx, eax
and ecx, 0xffff
cmp word [ebx + ecx*2 + 0x3f8], di
je 0x45e715
inc eax
cmp ax, word [ebp - 0x40]
jb 0x45e6e7
mov al, byte [ebp - 0x12]
test al, al
je 0x45ea24
jmp 0x45e715
mov esi, dword [ebp - 0x38]
jmp 0x45e718
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x20]
xor al, al
test dl, dl
mov byte [ebp - 0x48], al
jbe 0x45e757
and esi, 0xff
and ecx, 0xffff
shl esi, 0xa
add esi, ecx
mov edx, dword [ebp - 0x48]
and edx, 0xff
cmp dword [ebp + edx*4 - 0xa8], esi
je 0x45ea24
mov cl, byte [ebp - 0x20]
inc al
cmp al, cl
mov byte [ebp - 0x48], al
jb 0x45e735
lea eax, [ebp - 0x9b8]
mov ecx, ebx
push eax
mov dword [ebp - 4], 0
call fcn.0045c9f0
mov al, byte [ebx + 0x192]
mov cl, byte [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov byte [ebp - 0x9b0], al
mov eax, edi
mov byte [ebp - 0x9b8], cl
and eax, 0xffff
mov dword [ebp - 0x9b4], edx
lea esi, [ebp + eax*4 - 0x9ac]
mov byte [ebp + eax - 0x22c], 0
mov byte [ebp + eax - 0x3ac], 2
mov dword [ebp - 0x30], esi
cmp dword [esi], 0
jne 0x45e7c7
mov ecx, dword [ebp - 0x4c]
and ecx, 0xff
shl ecx, 9
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi], eax
mov dl, byte [ebp - 0x4c]
xor al, al
mov byte [ebp - 0x44], al
cmp al, dl
jae 0x45e7fa
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
and edi, 0xff
mov esi, dword [ecx]
mov ecx, 0x80
shl edi, 9
add edi, esi
mov esi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x34]
inc al
mov byte [ebp - 0x44], al
jmp 0x45e7cf
mov ecx, ebx
call fcn.00435fc0
mov dword [ebp - 0x64], eax
xor eax, eax
cmp ax, word [ebp - 0x64]
mov dword [ebp - 0x30], eax
jae 0x45e8cd
mov cl, byte [ebp - 0x18]
mov edx, eax
and edx, 0xffff
mov byte [ebp - 0x9b8], cl
mov cl, byte [ebx + 0x192]
mov si, word [ebx + edx*2 + 0x3f8]
mov edx, dword [ebp - 0x50]
and edx, 0xffff
cmp si, di
mov dword [ebp - 0x9b4], edx
mov byte [ebp - 0x9b0], cl
je 0x45e8c7
and esi, 0xffff
lea edi, [ebp + esi*4 - 0x9ac]
mov byte [ebp + esi - 0x22c], 0
mov byte [ebp + esi - 0x3ac], 1
cmp dword [edi], 0
jne 0x45e888
mov edx, dword [ebp - 0x9b0]
and edx, 0xff
shl edx, 9
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [edi], eax
mov ecx, dword [ebp - 0x9b0]
and ecx, 0xff
shl ecx, 9
and esi, 0x800000ff
jns 0x45e8a7
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [0x4e601c]
mov edi, dword [edi]
shl esi, 0xc
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x34]
inc eax
jmp 0x45e806
mov al, byte [ebp - 0x12]
xor edi, edi
test al, al
jne 0x45e921
test byte [ebx + 0xf2], 8
je 0x45e8fd
mov cl, byte [ebp - 0x28]
mov di, word [ebx + 0xf4]
mov eax, 1
shl eax, cl
dec eax
and di, ax
neg di
sbb edi, edi
neg edi
jmp 0x45e902
mov edi, 1
mov eax, dword [ebx + 0x110]
test ah, 0x10
jne 0x45e921
mov cl, byte [ebx + 0x2a98]
push ecx
mov ecx, ebx
call fcn.004498f0
cmp al, 0x18
jb 0x45e921
xor edi, edi
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x9b8]
push eax
push ecx
mov ecx, ebx
mov byte [ebp - 0x14], 0
call fcn.0045f2c0
test al, al
jne 0x45ea2c
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
and eax, 0xffff
and edx, 0xff
mov ecx, eax
and eax, 7
mov edx, dword [ebx + edx*4 + 0x19c]
mov al, byte [eax + 0x4bf394]
shr ecx, 3
add ecx, edx
mov dl, byte [ecx]
or dl, al
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov byte [ecx], dl
mov dl, byte [ebp - 0x18]
inc word [ebx + 0x39e]
lea ecx, [eax + eax*4]
lea esi, [ebx + ecx*4]
mov cx, word [ebp - 0x50]
mov byte [esi + 0x6f8], dl
mov dx, word [ebp - 0x34]
mov word [esi + 0x6fa], cx
mov cl, byte [ebp - 0x14]
mov word [esi + 0x6fc], dx
mov edx, dword [ebp - 0x38]
mov byte [esi + 0x6fe], cl
mov cx, word [ebp - 0x2c]
mov byte [esi + 0x6ff], dl
mov word [esi + 0x700], cx
lea ecx, [eax + eax*4 + 0x1c2]
mov esi, dword [ebp + 8]
and edx, 0xff
mov dword [ebx + ecx*4], edi
mov ecx, eax
shl ecx, 9
shl edx, 0xa
lea edi, [ecx + ebx + 0xa98]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
add edx, ecx
mov dword [ebp + eax*4 - 0xa8], edx
mov al, byte [ebp - 0x20]
inc al
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x9b8]
mov ecx, ebx
push eax
call fcn.0045ca30
mov cl, byte [ebp - 0x11]
mov al, byte [ebp - 0x20]
cmp al, cl
mov dword [ebp - 4], 0xffffffff
je 0x45ea5d
inc byte [ebp - 0x3c]
jmp 0x45e543
test edi, edi
je 0x45ea05
lea edx, [ebp - 0x54]
push 0x4d8340
push edx
mov dword [ebp - 0x54], 0x40f00
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0x9b8]
push edx
call fcn.0045ca30
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [ebp - 0x18]
mov dl, byte [ebp - 0x11]
inc al
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x20]
mov cl, byte [ebp - 0x18]
jmp 0x45e525
inc byte [ebp - 0x12]
jmp 0x45e50e
test al, al
jne 0x45eaa9
lea eax, [ebp - 0x58]
push 0x4d8340
push eax
mov dword [ebp - 0x58], 0x40f00
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x5c]
push 0x4d8340
push ecx
mov dword [ebp - 0x5c], 0x41200
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8