Function at 0x42d1d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x224
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
mov dword [esp + 0x18], ecx
call fcn.004034d0
mov ebp, eax
push ebp
push 0xbc614e
push str.Count
push str.Syntax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0xbc614e
je 0x42d4ff
test ebx, ebx
je 0x42d4ff
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
push esi
push edi
mov ecx, 0x514540
call edx
mov edi, eax
add edi, 0x10
xor esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
test ebx, ebx
jle 0x42d4e1
lea esp, [esp]
push esi
lea eax, [esp + 0x20]
push str.Syntax_d
push eax
call fcn.00402950
mov edi, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push ebp
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0
push str.Title
push edi
call ebx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42d4d2
push 0x4c
call fcn.0049f1a2
add esp, 4
test eax, eax
je 0x42d2ae
mov ecx, eax
call fcn.0042c720
mov esi, eax
jmp 0x42d2b0
xor esi, esi
lea eax, [esp + 0x28]
mov dword [esp + 0x18], esi
lea edx, [eax + 2]
jmp 0x42d2c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d2c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 4]
call fcn.00402140
push ebp
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0
push str.File
push edi
call ebx
lea eax, [esp + 0x28]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42d300
sub eax, ecx
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 8]
call fcn.00402140
push ebp
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
push 0x4bc164
push edi
call ebx
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d340
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
lea ebx, [esi + 0xc]
push ecx
mov ecx, ebx
call fcn.00402140
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
je 0x42d3ae
mov eax, edx
cmp dword [eax - 0xc], 0
jl 0x42d516
cmp word [eax], 0x3b
jne 0x42d384
push 1
push 0
mov ecx, ebx
call fcn.00401d10
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
sub eax, 1
js 0x42d516
mov ecx, dword [ebx]
cmp eax, dword [ecx - 0xc]
jg 0x42d516
cmp word [ecx + eax*2], 0x3b
jne 0x42d3ae
push 1
push eax
mov ecx, ebx
call fcn.00401d10
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebp
push 0xbc614e
push 0x4bbe38
push edi
call ebx
mov dword [esi + 0x18], eax
cmp eax, 0xbc614e
jne 0x42d3d3
mov dword [esi + 0x18], 0
push ebp
push 0xbc614e
push str.ToolGroup
push edi
call ebx
mov dword [esi + 0x1c], eax
cmp eax, 0xbc614e
jne 0x42d3f2
mov dword [esi + 0x1c], 0xffffffff
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1b]
push ecx
push str.SoftTab
push edi
mov ecx, ebp
mov byte [esp + 0x27], 0
call fcn.00403f90
mov dl, byte [esp + 0x13]
mov byte [esi + 0x20], dl
mov eax, dword [esi + 0x18]
test eax, eax
jge 0x42d424
mov dword [esi + 0x18], 4
jmp 0x42d430
cmp eax, 0x20
jle 0x42d430
mov dword [esi + 0x18], 0x20
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebp
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
push str.Template
push edi
call ebx
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d452
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0x10]
call fcn.00402140
push ebp
push 0x104
lea edx, [esp + 0x30]
push edx
push 0
push str.WordChars
push edi
call ebx
lea eax, [esp + 0x28]
lea ecx, [eax + 2]
jmp 0x42d490
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42d490
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 0x14]
call fcn.00402140
push ebp
push 0x28
add esi, 0x24
push esi
push str.ColMarker
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00442c80
mov esi, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x14], esi
jl 0x42d250
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d4fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov ecx, dword [esp + 0x228]
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x224
ret
push 0x80070057
call fcn.00401000
int3