Function at 0x4297d0
Capabilities:
Get file size
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45afb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x20], ebx
call fcn.0041f180
mov dword [esp + 0x24], eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov al, byte [ebx + 0x16d]
xor ebp, ebp
test al, al
jbe 0x429895
mov esi, dword [esp + 0x24]
mov dx, word [ebx + 0x16e]
xor ecx, ecx
and esi, 0xffff
mov cl, byte [ebx + 0x172]
and eax, 0xff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x14d]
lea edi, [ebx + 0x41f4]
mov dword [esp + 0x14], eax
jmp 0x429854
mov edx, dword [esp + 0x18]
mov bx, word [edi]
cmp dx, bx
jbe 0x429862
mov eax, edx
sub eax, ebx
jmp 0x429864
xor eax, eax
mov edx, eax
add edi, 2
and edx, 0xffff
add ecx, 2
imul edx, esi
imul edx, dword [esp + 0x1c]
add ebp, edx
xor edx, edx
mov dl, ah
mov byte [ecx - 3], dl
mov byte [ecx - 2], al
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x429850
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 8]
mov byte [esp + 0x60], 1
mov dword [ebx + 0xb0], ebp
mov dword [esp + 0x10], ebp
test byte [eax + 0xdc], 0x20
je 0x42992f
mov eax, dword [eax + 0x100]
shl eax, 0xb
mov dword [esp + 0x10], eax
mov eax, dword [0x4971e8]
push eax
push 1
push str.CheckFalseDiskSize
push str.FC_MP_TOOL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x429976
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x172]
and edx, 0xffff
imul ecx, edx
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
cmp eax, 0x10000
jbe 0x429976
mov eax, ecx
push 0x48d780
shl eax, 0x10
cdq
and edx, 0x7ff
mov dword [esp + 0x1c], 0xd0000
add eax, edx
sar eax, 0xb
mov dword [ebx + 0xb4], eax
lea eax, [esp + 0x1c]
push eax
call sub.MSVCRT.dll__CxxThrowException
xor ecx, ecx
mov cl, byte [ebx + 0xe5]
sub ecx, 2
je 0x429965
sub ecx, 2
jne 0x429976
xor ecx, ecx
mov cl, byte [ebx + 0xc8]
mov edx, dword [eax + ecx*4 + 0x208]
test edx, edx
je 0x429976
mov ecx, dword [ebx + ecx*4 + 0x427c]
cmp ebp, ecx
jbe 0x429976
mov dword [esp + 0x10], ecx
jmp 0x429976
mov eax, dword [eax + 0x1c0]
shl eax, 0xb
cmp ebp, eax
jbe 0x429976
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov dl, byte [eax + 0xdc]
mov cl, dl
and cl, 0x10
je 0x4299a2
mov esi, dword [eax + 0x164]
test esi, esi
jne 0x4299a2
mov edi, dword [eax + 0x15c]
mov esi, dword [eax + 0x158]
mov dword [esp + 0x1c], edi
jmp 0x4299c3
test cl, cl
je 0x4299b9
cmp dword [eax + 0x164], 1
jne 0x4299b9
mov esi, dword [eax + 0x158]
shl esi, 1
jmp 0x4299bb
xor esi, esi
mov dword [esp + 0x1c], 0
mov edi, dword [eax + 0x148]
shl edi, 0xb
test cl, cl
mov dword [esp + 0x18], edi
jne 0x429a10
test dl, 4
je 0x429a31
mov esi, dword [eax + 0x140]
test esi, esi
je 0x4299e8
shl esi, 0xb
jmp 0x429a10
push ecx
add eax, 0x104
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0045822c
call fcn.0040e570
mov edi, dword [esp + 0x1c]
add esp, 4
shr eax, 9
add eax, 0x1000
mov esi, eax
mov eax, esi
shr eax, 1
mov ecx, eax
mov edx, eax
mov byte [esp + 0x5b], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], dl
mov byte [esp + 0x5e], al
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0xe0]
test ecx, ecx
je 0x429c82
test byte [eax + 0xdc], 1
je 0x429c82
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov dword [esp + 0x254], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x2c]
mov byte [esp + 0x254], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [0x49770c]
lea ecx, [esp + 0x28]
push eax
push str._sAP
push ecx
mov byte [esp + 0x260], 2
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0045822c
call fcn.0040e570
shr eax, 9
add eax, 0x1000
add esp, 4
mov esi, eax
lea eax, [esp + 0x28]
push str._securelock.exe
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x81
push 3
push 0
push 1
push 0x80000000
push eax
call edi
lea ecx, [esp + 0x14]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x28]
push str.iStar.exe
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0x81
push 3
push 0
push 1
push 0x80000000
push eax
call edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebp, 0xffffffff
jne 0x429b48
mov dword [esp + 0x14], 0x135c
jmp 0x429b54
push 0
push ebp
call edi
shr eax, 9
mov dword [esp + 0x14], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x429b62
mov edi, 0x47a
jmp 0x429b70
mov ecx, dword [esp + 0x20]
push 0
push ecx
call edi
mov edi, eax
shr edi, 9
mov edx, dword [ebx + 8]
mov al, byte [edx + 0x189]
cmp al, 8
jne 0x429bb1
mov eax, dword [0x49770c]
lea ecx, [esp + 0x2c]
push eax
push str._sAP_securelock.exe
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
add esp, 0xc
lea ecx, [esp + 0x30]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x429be8
mov eax, dword [esp + 0x14]
add edi, eax
jmp 0x429be8
cmp al, 0x14
jne 0x429bea
mov ecx, dword [0x49770c]
lea edx, [esp + 0x2c]
push ecx
push str._sAP_securelock.exe
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0xc
lea ecx, [esp + 0x30]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x429be8
mov ecx, dword [esp + 0x14]
add edi, ecx
sub esi, edi
mov eax, dword [esp + 0x10]
cmp eax, 0x3e8000
jb 0x429c09
lea edx, [eax + eax]
mov eax, 0x10624dd3
mul edx
shr edx, 6
lea esi, [esi + edx + 0x4000]
shr esi, 1
shl esi, 1
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
shr eax, 1
mov ecx, eax
mov edx, eax
mov byte [esp + 0x5b], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
cmp ebp, 0xffffffff
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], dl
mov byte [esp + 0x5e], al
je 0x429c3c
push ebp
call edi
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x429c48
push eax
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x254], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 0
call fcn.00458490
lea ecx, [esp + 0x28]
mov dword [esp + 0x254], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea eax, [edi + ecx]
mov ecx, dword [ebx + 8]
mov edi, edx
mov dword [esp + 0x18], eax
mov ebp, dword [ecx + 0x160]
sub edi, eax
sub edi, esi
test ebp, ebp
jne 0x429cb5
test byte [ecx + 0xdc], 0x10
je 0x429cb5
shr esi, 1
mov edi, edx
sub edi, esi
sub edi, eax
cmp byte [ecx + 0xdd], 1
jne 0x429cc5
xor eax, eax
jmp 0x429d62
mov eax, dword [ecx + 0x13c]
test eax, eax
je 0x429cd8
shl eax, 0xb
mov esi, edi
sub esi, eax
jmp 0x429d44
mov edx, dword [ecx + 0x10c]
test edx, edx
je 0x429d1f
mov esi, dword [ecx + 0x108]
mov ebp, 0x4970cc
mov cl, byte [esi]
mov al, cl
cmp cl, byte [ebp]
jne 0x429d12
test al, al
je 0x429d0e
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [ebp + 1]
jne 0x429d12
add esi, 2
add ebp, 2
test al, al
jne 0x429ced
xor eax, eax
jmp 0x429d17
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x429d1f
mov esi, edx
jmp 0x429d44
mov eax, dword [ebx + 8]
xor edx, edx
push 0
push edi
mov dl, byte [eax + 0xe4]
mov eax, edx
cdq
push edx
push eax
call fcn.00458850
push 0
push 0x64
push edx
push eax
call fcn.004587a0
mov esi, eax
mov ecx, dword [ebx + 8]
mov al, byte [ecx + 0x121]
test al, al
je 0x429d60
cmp al, 1
mov esi, 0xb40
je 0x429d60
lea esi, [edi - 0xb40]
mov eax, esi
mov edx, eax
mov byte [esp + 0x4c], al
shr edx, 8
mov byte [esp + 0x4d], dl
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov byte [esp + 0x4f], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4e], dl
mov edx, eax
shr edx, 8
mov byte [esp + 0x53], dl
mov byte [esp + 0x52], al
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov byte [esp + 0x55], al
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x54], dl
mov edx, eax
shr edx, 8
mov byte [esp + 0x58], dl
mov edx, eax
mov byte [esp + 0x57], al
shr edx, 0x10
shr eax, 0x18
mov byte [esp + 0x59], dl
mov byte [esp + 0x5a], al
mov al, byte [ecx + 0x121]
test al, al
je 0x429ddc
cmp byte [ecx + 0xdd], 1
jne 0x429ddc
mov dword [esp + 0x10], 0xb40
mov cx, word [ecx + 0x2fc]
test cx, cx
jbe 0x429e66
xor eax, eax
xor edx, edx
mov al, byte [ebx + 0x172]
mov dx, word [ebx + 0x16e]
imul eax, edx
mov edx, dword [esp + 0x24]
and ecx, 0xffff
and edx, 0xffff
imul eax, edx
xor edx, edx
mov dl, byte [ebx + 0x16d]
imul eax, edx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
shl ecx, 0xb
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x10]
shl esi, 3
lea edx, [eax*8]
mov eax, 0x51eb851f
mul edx
mov eax, dword [esp + 0x10]
shr edx, 5
add edx, eax
cmp edx, ecx
jb 0x429e66
cmp esi, edx
ja 0x429e5a
mov edx, esi
cmp ecx, edx
mov dword [esp + 0x10], edx
ja 0x429e66
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x90], 0x51
mov byte [esp + 0x8c], al
mov ecx, eax
mov edx, eax
mov byte [esp + 0x14a], 0x4a
shr eax, 0x18
mov byte [esp + 0x8f], al
lea eax, [esp + 0x4c]
shr ecx, 8
mov byte [esp + 0x8d], cl
mov ecx, dword [ebx + 0x18]
push eax
push 0x200
shr edx, 0x10
push 0x99
push ecx
mov byte [esp + 0x9e], dl
mov byte [esp + 0x15b], 0x4e
call fcn.0044bcd0
add esp, 0x10
test eax, eax
jne 0x429ee1
lea edx, [esp + 0x18]
push 0x48d780
push edx
mov dword [esp + 0x20], 0x90500
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [ebx + 0x23]
cmp al, 0x92
je 0x429ef7
cmp al, 0x96
je 0x429ef7
mov ecx, ebx
call fcn.004126f0
test eax, eax
je 0x429f00
push 0
mov ecx, ebx
call fcn.00424ca0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call esi
mov ecx, ebx
call fcn.00418080
test eax, eax
jne 0x429f2f
lea eax, [esp + 0x24]
push 0x48d780
push eax
mov dword [esp + 0x2c], 0x92100
call sub.MSVCRT.dll__CxxThrowException
push 0x1f4
call esi
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x248
ret