Function at 0x448610
Capabilities:
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [0x56e17c]
push 0
push 0x80
push 3
push 0
push 3
mov eax, edx
push 0x80000000
mov dword [ecx], 0
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x56e220], eax
cmp esi, 0xffffffff
je 0x4486d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x565908
push 1
mov dword [ebp - 0x14], eax
push 0x4089e8
add eax, 0xa
push 0x408a0c
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4486d7
shl eax, 0x14
cmp eax, dword [ebp - 0x14]
jae 0x4486d7
push 0xc361
push 0x408a20
push 2
call fcn.00445ff0
add esp, 0xc
cmp eax, 6
je 0x4486d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 1
xor eax, eax
jmp 0x448e34
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push 0
lea eax, [ebp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
sub eax, 2
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
mov dword [0x56e220], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x448725
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x448e34
cmp dword [0x56e91c], 0
je 0x44876c
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0xfffffffc
lea eax, [esi + eax*2]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jb 0x44876c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x408a48
push eax
call esi
test eax, eax
je 0x448765
push 0x408a54
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x44876c
mov dword [ebp - 8], 1
mov ecx, dword [0x56e1b8]
call fcn.00447da0
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [0x56e1b8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], esi
mov dword [0x56e1b8], esi
je 0x44879b
mov esi, dword [0x56e948]
mov dword [ebp - 4], esi
mov ecx, dword [0x53d354]
cmp ecx, 0xffffffff
je 0x4487b8
call fcn.00447da0
test eax, eax
je 0x4487b8
mov esi, dword [0x53d354]
mov dword [ebp - 4], esi
mov edx, dword [ebp + 0x18]
mov dword [0x56d450], 0
test edx, edx
jne 0x448870
push 0x56e1c0
xor ecx, ecx
call fcn.00453cd0
mov eax, dword [0x56e178]
add esp, 4
mov eax, dword [eax*4 + 0x53d348]
mov dword [0x56a9ac], eax
mov eax, dword [0x53d358]
cmp eax, 0xffffffff
jne 0x44880b
cmp dword [0x56e22c], 0
je 0x44880d
cmp dword [ebp - 8], 0
jne 0x44880d
lea esi, [eax + 7]
jmp 0x44880d
mov esi, eax
lea eax, [esi + esi*4]
shl eax, 4
mov dword [0x56d450], esi
test byte [eax + 0x53b698], 1
mov eax, dword [0x56e1b4]
jne 0x44882c
mov eax, 0xfde9
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x7f5
push edi
call esi
push 0
mov edx, 0x408071
mov ecx, edi
call fcn.004470f0
mov eax, dword [0x56e178]
add esp, 4
push 0
push dword [eax*4 + 0x53d348]
push 0x7ef
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x448e2f
mov eax, dword [0x53d358]
cmp eax, 0xffffffff
je 0x448888
cmp eax, 4
je 0x448d39
cmp eax, 5
jne 0x4488e3
cmp eax, 4
je 0x448d39
cmp eax, 5
je 0x4488b4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00448450
mov edx, dword [ebp + 0x18]
add esp, 8
test eax, eax
je 0x4488e3
mov eax, dword [0x53d358]
cmp eax, 4
je 0x448d39
cmp eax, 5
je 0x448ce0
cmp byte [ebx], 0xef
jne 0x448ccd
cmp byte [ebx + 1], 0xbb
jne 0x448ccd
cmp byte [ebx + 2], 0xbf
jne 0x448ccd
push 0x56e1c0
mov ecx, ebx
call fcn.00453cd0
mov edi, dword [0x53d358]
add esp, 4
cmp edi, 0xffffffff
je 0x44890b
cmp edi, 6
je 0x44890b
cmp edi, 7
jne 0x448ab4
cmp byte [ebx], 0xef
jne 0x448920
cmp byte [ebx + 1], 0xbb
jne 0x448920
cmp byte [ebx + 2], 0xbf
je 0x448a09
test byte [0x56e1c0], 0x40
je 0x44895d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x408fd8
push 0x56e1dc
call esi
test eax, eax
je 0x448a09
push 0x408fe0
push 0x56e1dc
call esi
test eax, eax
je 0x448a09
mov edi, dword [0x53d358]
cmp edi, 6
je 0x448a09
cmp edi, 7
je 0x448a09
mov esi, dword [ebp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.00448560
test eax, eax
je 0x448ab4
mov al, byte [ebx]
cmp al, 0xef
jne 0x44899d
cmp byte [ebx + 1], 0xbb
jne 0x44899d
cmp byte [ebx + 2], 0xbf
jne 0x44899d
lea ecx, [ebx + 3]
mov dword [ebp + 0x14], ecx
jmp 0x4489a0
mov dword [ebp + 0x14], ebx
cmp al, 0xef
jne 0x4489b3
cmp byte [ebx + 1], 0xbb
jne 0x4489b3
cmp byte [ebx + 2], 0xbf
lea edx, [esi - 3]
je 0x4489b5
mov edx, esi
cmp al, 0xef
jne 0x4489c8
cmp byte [ebx + 1], 0xbb
jne 0x4489c8
cmp byte [ebx + 2], 0xbf
lea ecx, [ebx + 3]
je 0x4489ca
mov ecx, ebx
call fcn.004485d0
mov ecx, dword [ebp + 0x14]
mov esi, eax
call fcn.004485a0
dec eax
cmp eax, esi
mov esi, dword [ebp - 4]
jne 0x448a0c
cmp dword [ebp - 8], 0
jne 0x448ab7
lea eax, [esi + esi*4]
shl eax, 4
test byte [eax + 0x53b698], 2
jne 0x448a0c
cmp dword [0x56e22c], 0
je 0x448ab7
jmp 0x448a0c
mov esi, dword [ebp - 4]
mov ecx, 0x56e1c0
call fcn.00454660
test eax, eax
je 0x448a2e
mov edi, dword [0x53d358]
cmp edi, 6
je 0x448a2e
cmp edi, 7
jne 0x448ab7
mov esi, dword [ebp - 0xc]
push 0
push 0xfde9
push 0x7f5
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, 0x408071
mov ecx, esi
call fcn.004470f0
add esp, 4
cmp byte [ebx], 0xef
jne 0x448c9c
cmp byte [ebx + 1], 0xbb
jne 0x448c9c
cmp byte [ebx + 2], 0xbf
jne 0x448c9c
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffd
lea edi, [ebx + 3]
push eax
mov edx, edi
mov ecx, esi
call fcn.004470f0
add esp, 4
mov dword [0x56d450], 7
cmp byte [ebx], 0xef
jne 0x448aa3
cmp byte [ebx + 1], 0xbb
jne 0x448aa3
cmp byte [ebx + 2], 0xbf
je 0x448aa5
mov edi, ebx
test edi, edi
je 0x448c7f
mov ecx, edi
jmp 0x448cb7
mov esi, dword [ebp - 4]
cmp edi, 0xffffffff
jne 0x448b05
mov eax, dword [0x56e1c0]
and eax, 0x40
je 0x448ace
mov edi, dword [0x56e1fc]
jmp 0x448ad1
or edi, 0xffffffff
mov dword [0x56d450], edi
cmp edi, 0xffffffff
jne 0x448b0b
test eax, eax
je 0x448ae4
xor edi, edi
jmp 0x448b05
mov eax, dword [0x53d354]
cmp eax, 0xffffffff
je 0x448b03
mov edi, dword [0x56e1b8]
lea eax, [eax + eax*4]
shl eax, 4
test byte [eax + 0x53b698], 0x3f
jne 0x448b05
mov edi, esi
mov dword [0x56d450], edi
lea eax, [edi + edi*4]
shl eax, 4
test byte [eax + 0x53b698], 0x40
je 0x448b2b
mov ecx, dword [eax + 0x53b69c]
mov dword [ebp + 0x14], ecx
cmp ecx, 0xfde8
jne 0x448b68
mov eax, dword [eax + 0x53b69c]
mov dword [ebp + 0x14], eax
cmp eax, 0xfde8
jne 0x448c3d
mov esi, dword [ebp + 0x18]
xor ecx, ecx
mov eax, ebx
test esi, esi
jle 0x448b6b
lea ebx, [ebx]
mov dl, byte [eax]
test dl, dl
js 0x448c3d
je 0x448c3d
inc ecx
inc eax
cmp ecx, esi
jl 0x448b50
jmp 0x448b6b
mov esi, dword [ebp + 0x18]
lea eax, [esi*2 + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push edi
push dword [ebp + 0x18]
push ebx
push 0
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esi + 8]
lea ecx, [esi + ecx*2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp + 0x18], eax
call edi
mov esi, dword [ebp - 0xc]
push 0
push 0xfde9
push 0x7f5
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, 0x408071
mov ecx, esi
call fcn.004470f0
push dword [ebp + 0x18]
mov edx, ebx
mov ecx, esi
call fcn.004470f0
add esp, 8
test ebx, ebx
jne 0x448c29
mov eax, dword [0x56e178]
push ebx
mov eax, dword [eax*4 + 0x53d348]
mov dword [0x56a9ac], eax
call edi
jmp 0x448e2f
mov ecx, ebx
call fcn.00447960
push ebx
mov dword [0x56a9ac], eax
call edi
jmp 0x448e2f
mov esi, dword [ebp - 0xc]
push 0
push dword [0x56e1b4]
push 0x7f5
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, 0x408071
mov ecx, esi
call fcn.004470f0
push dword [ebp + 0x18]
mov edx, ebx
mov ecx, esi
call fcn.004470f0
add esp, 8
mov dword [0x56d450], 0
test ebx, ebx
jne 0x448cb5
mov eax, dword [0x56e178]
push ebx
mov eax, dword [eax*4 + 0x53d348]
mov dword [0x56a9ac], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x448e2f
push dword [ebp + 0x18]
mov edx, ebx
mov ecx, esi
call fcn.004470f0
add esp, 4
mov dword [0x56d450], 6
mov ecx, ebx
call fcn.00447960
push ebx
mov dword [0x56a9ac], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x448e2f
cmp dword [ebp - 0x10], 0
jne 0x448cdb
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
jmp 0x448d4e
mov esi, dword [ebp - 0x14]
jmp 0x448cf3
xor eax, eax
mov ecx, 0xfffe
cmp word [ebx], cx
sete al
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
push edx
push ebx
push ebx
call fcn.0050f0cc
mov edx, dword [ebp + 0x18]
xor eax, eax
add esp, 0xc
test esi, esi
sete al
lea eax, [eax*2 + 3]
mov dword [0x56d450], eax
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [ebp + 0x18]
shr eax, 1
test esi, esi
je 0x448d61
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
mov dword [ebp - 0x10], eax
jmp 0x448d68
xor ecx, ecx
mov esi, 0xfeff
cmp word [ebx], si
sete cl
mov dword [ebp - 4], ecx
cmp eax, 5
je 0x448cf0
mov esi, dword [ebp - 4]
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax*2 + 2]
jmp 0x448d0f
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x448dbe
test esi, esi
lea esi, [ebx + 2]
jne 0x448d98
mov esi, ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
mov esi, dword [ebp - 0xc]
push 0
push 0xfde9
push 0x7f5
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, 0x408071
mov ecx, esi
call fcn.004470f0
mov edx, dword [ebp + 0x18]
push 0x56e1c0
lea edx, [edx - 1]
mov ecx, edi
call fcn.00453cd0
mov eax, dword [ebp + 0x18]
dec eax
push eax
mov edx, edi
mov ecx, esi
call fcn.004470f0
add esp, 0xc
test edi, edi
jne 0x448e20
mov eax, dword [0x56e178]
mov eax, dword [eax*4 + 0x53d348]
jmp 0x448e27
mov ecx, edi
call fcn.00447960
push edi
mov dword [0x56a9ac], eax
call ebx
mov eax, 1
pop edi
pop esi
mov dword [0x53d354], 0xffffffff
mov dword [0x53d358], 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret