Function at 0x449020
Capabilities:
Read .ini file

Disassembly:
push ebp
mov eax, 0x105c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0049c7e0
cmp byte [0x4c4078], 0
je 0x44924d
xor esi, esi
nop
movzx eax, byte [esi*4 + 0x4a4a00]
mov byte [esi + 0x4a3580], al
inc esi
cmp esi, 0xff
jle 0x449040
movzx eax, byte [0x8734b0]
cmp byte [0x8730b0], al
je 0x44908d
test al, al
je 0x449088
movzx eax, byte [0x4c4090]
test al, al
je 0x44933b
test al, al
je 0x449321
movzx eax, byte [0x8734b0]
mov byte [0x8730b0], al
movsx eax, byte [0x873400]
cmp eax, dword [0x4f33b0]
je 0x4491ee
mov byte [0x4c5a64], 0
mov dword [esp], 0x4c4770
call fcn.0046f1c0
mov dword [esp], 0x4c4780
call fcn.0046f1c0
movzx eax, byte [0x873400]
test al, al
je 0x4491da
xor edx, edx
cmp al, 3
mov dword [ebp - 0x1048], edx
je 0x4492ea
cmp al, 2
je 0x44950b
mov eax, 8
mov edi, 8
mov esi, str.8X8.BMP
mov dword [ebp - 0x1044], eax
mov eax, 0x4b13ff
mov dword [0x4a49e0], eax
mov dword [esp + 0xc], esi
mov eax, dword [0x4c4b60]
lea ebx, [ebp - 0x1038]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, 0x400
mov dword [esp + 4], eax
call fcn.0047eb50
mov dword [esp + 4], ebx
mov eax, 0x4c4770
mov dword [esp + 8], eax
mov eax, dword [0x4c4128]
mov dword [esp], eax
call fcn.0046ebe0
test eax, eax
je 0x4494da
movzx eax, byte [ebp - 0x1044]
mov edx, edi
mov byte [0x4c477c], dl
mov byte [0x4c477d], al
mov eax, dword [ebp - 0x1048]
test eax, eax
je 0x4491af
mov dword [esp], ebx
mov edx, dword [ebp - 0x1048]
mov edi, 0x400
mov dword [esp + 4], edi
mov eax, dword [0x4c4b60]
mov esi, 0x4c4780
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call fcn.0047eb50
mov dword [esp + 8], esi
mov eax, dword [0x4c4128]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0046ebe0
test eax, eax
je 0x449554
call fcn.00448aa0
test eax, eax
je 0x449541
movzx eax, byte [0x873400]
mov byte [0x4c40a0], al
movsx eax, al
test al, al
je 0x4494f1
movzx eax, byte [0x873400]
mov dword [esp], 1
movsx eax, al
mov dword [0x4f33b0], eax
call fcn.00462730
xor esi, esi
imul eax, esi, 0xcc
mov edi, dword [0x4c6378]
lea ebx, [eax + 0x4c40c0]
movzx eax, byte [ebx + 0x24]
cmp byte [ebx + 0x79], al
jne 0x449214
movzx eax, byte [ebx + 0x25]
cmp byte [ebx + 0x78], al
je 0x44923d
mov dword [esp], ebx
call fcn.00497cb0
movzx eax, byte [ebx + 0x78]
mov dword [esp + 4], eax
movzx eax, byte [ebx + 0x79]
mov dword [esp], eax
call fcn.004978d0
call fcn.004972e0
mov dword [esp], edi
call fcn.00497cb0
inc esi
cmp esi, 7
jle 0x4491f0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp - 0x1039], 0
mov edi, dword [0x4c4f90]
xor esi, esi
lea esi, [esi]
movzx edx, byte [esi*4 + 0x4a4a01]
test edi, edi
movzx ecx, byte [esi*4 + 0x4a4a02]
movzx ebx, byte [esi*4 + 0x4a4a03]
jle 0x44929a
movzx eax, dl
movzx edx, byte [eax + 0x4d8df0]
movzx eax, cl
movzx ecx, byte [eax + 0x4d8df0]
movzx eax, bl
movzx ebx, byte [eax + 0x4d8df0]
movzx eax, cl
movzx edx, dl
shl eax, 8
or edx, eax
movzx eax, bl
shl eax, 0x10
or edx, eax
or edx, 0x2000000
cmp dword [esi*4 + 0x4c4b90], edx
je 0x4492ca
mov byte [ebp - 0x1039], 1
mov dword [esi*4 + 0x4c4b90], edx
inc esi
cmp esi, 0xff
jle 0x449260
cmp byte [ebp - 0x1039], 0
je 0x449057
call fcn.00448aa0
jmp 0x449057
mov byte [0x4c5a64], 0
mov eax, 0x20
mov ebx, str.david
mov dword [ebp - 0x1044], eax
mov edi, 0x20
mov eax, str.mask32.bmp
mov dword [ebp - 0x1048], eax
mov esi, str.32x32.bmp
mov dword [0x4a49e0], ebx
jmp 0x449105
mov dword [esp], str.Cannot_initialize_sound_
call fcn.004981e0
mov byte [0x8734b0], 0
xor eax, eax
jmp 0x449088
mov eax, dword [0x4c4b70]
mov edi, str.sound.cfg
mov esi, 0x400
mov dword [esp + 0xc], edi
xor ebx, ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x818]
mov dword [esp], eax
call fcn.0047eb50
mov dword [ebp - 0x1040], ebx
jmp 0x449383
inc dword [ebp - 0x1040]
cmp dword [ebp - 0x1040], 0x1d
jg 0x449585
mov edx, dword [ebp - 0x1040]
mov eax, dword [edx*4 + 0x4ba7a0]
cmp byte [eax], 0
je 0x449370
mov dword [esp + 4], eax
lea edx, [ebp - 0x818]
mov ecx, 0x400
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x418]
xor edi, edi
mov dword [esp + 0xc], edx
mov edx, 0x4b1441
lea esi, [ebp - 0x418]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov dword [esp], 0x4b1442
call sub.KERNEL32.dll_GetPrivateProfileStringA
sub esp, 0x18
movzx eax, byte [esi]
test al, al
je 0x44946d
movzx edx, al
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x4494bb
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
test eax, eax
jne 0x4494d4
cmp byte [esi], 0
je 0x44946d
mov ebx, esi
jmp 0x449424
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
test eax, eax
jne 0x44944d
inc ebx
movzx eax, byte [ebx]
test al, al
je 0x449456
movzx edx, al
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
je 0x449411
mov dword [esp], edx
mov eax, 8
mov dword [esp + 4], eax
call sub.msvcrt.dll__isctype
test eax, eax
je 0x449423
cmp byte [ebx], 0
je 0x449456
mov byte [ebx], 0
inc ebx
mov dword [ebp + edi*4 - 0xc38], esi
mov eax, 8
inc edi
cmp eax, edi
mov esi, ebx
jg 0x4493d6
movsx edi, di
xor esi, esi
cmp esi, edi
jge 0x449370
mov eax, dword [ebp + esi*4 - 0xc38]
mov ecx, 0x400
lea edx, [ebp - 0xc18]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x4c4b70]
mov dword [esp + 8], eax
call fcn.0047eb50
lea eax, [ebp - 0xc18]
call fcn.00448880
test al, al
jne 0x449560
inc esi
jmp 0x449472
mov dword [esp], edx
mov eax, 8
mov dword [esp + 4], eax
call sub.msvcrt.dll__isctype
test eax, eax
je 0x449408
inc esi
jmp 0x4493d6
mov dword [esp + 4], esi
mov dword [esp], str.Cannot_read_bitmap_file__s
call fcn.00495470
xor eax, eax
jmp 0x4491cb
mov dword [esp], str.Cannot_initialize_graphics_
call fcn.004981e0
mov byte [0x873400], 0
xor eax, eax
jmp 0x4491da
mov byte [0x4c5a64], 1
mov ecx, 0x10
mov edx, str.mask.bmp
mov dword [ebp - 0x1044], ecx
mov eax, 0x4b148a
mov edi, 0x10
mov dword [ebp - 0x1048], edx
mov esi, str.16X16.BMP
mov dword [0x4a49e0], eax
jmp 0x449105
mov dword [esp], str.Cannot_activate_palette_
call fcn.004981e0
xor eax, eax
jmp 0x4491cb
mov dword [esp + 4], ebx
jmp 0x4494de
mov eax, dword [ebp - 0x1040]
lea ebx, [esi + eax*8]
mov eax, dword [ebp + esi*4 - 0xc38]
inc esi
mov dword [esp], eax
call fcn.00498390
mov dword [ebx*4 + 0x4c4790], eax
jmp 0x449472
mov byte [0x4c4090], 1
mov al, 1
jmp 0x449079