Function at 0x40ca90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push 0
push 0xffffffffffffffff
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._s_syswartdat.ini
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x8c]
push ecx
push 1
push str.ShowAggrNumber
push 0x42c264
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x4319bc], eax
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x4319d8], eax
mov dword [0x4319dc], 0xffffffff
lea edx, [ebp - 0x8c]
push edx
push 0x31
lea eax, [ebp - 0xc0]
push eax
push str.255_0_0
push str.ColorTextSp
push 0x42c284
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42c290
lea ecx, [ebp - 0xc0]
push ecx
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40cbbf
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cb52
mov dword [ebp - 0xc8], 0xff
jmp 0x40cb64
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jge 0x40cb79
mov dword [ebp - 0xcc], 0
jmp 0x40cbb6
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cb98
mov dword [ebp - 0xd0], 0xff
jmp 0x40cbaa
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 8], ecx
push 0x42c294
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40cc6a
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cbfa
mov dword [ebp - 0xd4], 0xff
jmp 0x40cc0c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jge 0x40cc21
mov dword [ebp - 0xd8], 0
jmp 0x40cc5e
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cc40
mov dword [ebp - 0xdc], 0xff
jmp 0x40cc52
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xc4], ecx
push 0x42c298
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40cd12
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cca5
mov dword [ebp - 0xe0], 0xff
jmp 0x40ccb7
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
jge 0x40cccc
mov dword [ebp - 0xe4], 0
jmp 0x40cd09
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cceb
mov dword [ebp - 0xe8], 0xff
jmp 0x40ccfd
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [ebp - 0xc4]
and eax, 0xff
shl eax, 8
or edx, eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 0x10
or edx, ecx
mov dword [0x4319e0], edx
lea edx, [ebp - 0x8c]
push edx
push 0x31
lea eax, [ebp - 0xc0]
push eax
push 0x42c29c
push str.ColorBkSp
push 0x42c2ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42c2b8
lea ecx, [ebp - 0xc0]
push ecx
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ce11
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cda4
mov dword [ebp - 0xec], 0xff
jmp 0x40cdb6
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0xffffffff
jge 0x40cdcb
mov dword [ebp - 0xf0], 0xffffffff
jmp 0x40ce08
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cdea
mov dword [ebp - 0xf4], 0xff
jmp 0x40cdfc
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 8], ecx
push 0x42c2bc
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40cebc
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40ce4c
mov dword [ebp - 0xf8], 0xff
jmp 0x40ce5e
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jge 0x40ce73
mov dword [ebp - 0xfc], 0
jmp 0x40ceb0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40ce92
mov dword [ebp - 0x100], 0xff
jmp 0x40cea4
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0xc4], ecx
push 0x42c2c0
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40cf64
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cef7
mov dword [ebp - 0x104], 0xff
jmp 0x40cf09
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jge 0x40cf1e
mov dword [ebp - 0x108], 0
jmp 0x40cf5b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40cf3d
mov dword [ebp - 0x10c], 0xff
jmp 0x40cf4f
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0xffffffff
jne 0x40cf76
mov dword [0x4319e4], 0xffffffff
jmp 0x40cfa3
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [ebp - 0xc4]
and eax, 0xff
shl eax, 8
or edx, eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 0x10
or edx, ecx
mov dword [0x4319e4], edx
lea edx, [ebp - 0x8c]
push edx
push 0x31
lea eax, [ebp - 0xc0]
push eax
push str.0_255_0
push str.ColorTextSpOk
push 0x42c2dc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42c2e8
lea ecx, [ebp - 0xc0]
push ecx
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d075
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d008
mov dword [ebp - 0x110], 0xff
jmp 0x40d01a
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jge 0x40d02f
mov dword [ebp - 0x114], 0
jmp 0x40d06c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d04e
mov dword [ebp - 0x118], 0xff
jmp 0x40d060
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 8], ecx
push 0x42c2ec
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d120
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d0b0
mov dword [ebp - 0x11c], 0xff
jmp 0x40d0c2
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jge 0x40d0d7
mov dword [ebp - 0x120], 0
jmp 0x40d114
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d0f6
mov dword [ebp - 0x124], 0xff
jmp 0x40d108
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0xc4], ecx
push 0x42c2f0
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d1c8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d15b
mov dword [ebp - 0x128], 0xff
jmp 0x40d16d
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jge 0x40d182
mov dword [ebp - 0x12c], 0
jmp 0x40d1bf
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d1a1
mov dword [ebp - 0x130], 0xff
jmp 0x40d1b3
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [ebp - 0xc4]
and eax, 0xff
shl eax, 8
or edx, eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 0x10
or edx, ecx
mov dword [0x4319e8], edx
lea edx, [ebp - 0x8c]
push edx
push 0x31
lea eax, [ebp - 0xc0]
push eax
push 0x42c2f4
push str.ColorBkSpOk
push 0x42c304
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42c310
lea ecx, [ebp - 0xc0]
push ecx
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d2c7
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d25a
mov dword [ebp - 0x134], 0xff
jmp 0x40d26c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jge 0x40d281
mov dword [ebp - 0x138], 0xffffffff
jmp 0x40d2be
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d2a0
mov dword [ebp - 0x13c], 0xff
jmp 0x40d2b2
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 8], ecx
push 0x42c314
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d372
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d302
mov dword [ebp - 0x140], 0xff
jmp 0x40d314
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jge 0x40d329
mov dword [ebp - 0x144], 0
jmp 0x40d366
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d348
mov dword [ebp - 0x148], 0xff
jmp 0x40d35a
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0xc4], ecx
push 0x42c318
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d41a
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d3ad
mov dword [ebp - 0x14c], 0xff
jmp 0x40d3bf
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jge 0x40d3d4
mov dword [ebp - 0x150], 0
jmp 0x40d411
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
cmp eax, 0xff
jle 0x40d3f3
mov dword [ebp - 0x154], 0xff
jmp 0x40d405
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0xffffffff
jne 0x40d42c
mov dword [0x4319ec], 0xffffffff
jmp 0x40d459
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [ebp - 0xc4]
and eax, 0xff
shl eax, 8
or edx, eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 0x10
or edx, ecx
mov dword [0x4319ec], edx
mov esp, ebp
pop ebp
ret