Function at 0x40c660
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x41b250]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x41c3d4], 0
je 0x40c686
cmp dword [ebp + 0xc], 0
jne 0x40c7e4
mov dword [0x41c3d4], 1
mov byte [0x41c010], 0
push str.WWWBATCH.INI
push 0x14
lea eax, [ebp - 0x24]
push eax
push 0x41b074
push str.Language
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x41b074
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c6e5
push 0x14
lea edx, [ebp - 0x24]
push edx
push 0x41b0a4
push str.sLanguage
push str.INTL
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0x104
push 0x41c010
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c70b
mov byte [0x41c010], 0
jmp 0x40c734
push 0x41c010
call fcn.0040c9b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c72d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
jmp 0x40c734
mov byte [0x41c010], 0
push str.WWWDLANG
push 0x41c010
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41b0b4
push 0x41c010
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x24]
push edx
push 0x41c010
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [ebp - 0x148]
push eax
push 0x41c010
call fcn.0040df10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40c7d4
lea ecx, [ebp - 0x24]
push ecx
push str.WWWDLANG
push str._s._s
push 0x41c010
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
lea edx, [ebp - 0x148]
push edx
push 0x41c010
call fcn.0040df10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40c7d4
push 0x104
lea eax, [ebp - 0x148]
push eax
push 0x41c010
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x3c], 0
je 0x40c7e4
mov dword [0x41c3d4], 2
cmp dword [ebp + 0xc], 0x64
jl 0x40c899
cmp dword [0x41c3d4], 2
jne 0x40c899
mov byte [ebp - 0x38], 0x58
mov byte [ebp - 0x37], 0
push 0xa
lea ecx, [ebp - 0x37]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00410114
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x40c841
push 0x41c010
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x41b074
lea edx, [ebp - 0x38]
push edx
push 0x41ac44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0xc], eax
jmp 0x40c865
push 0x41c010
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x41b074
lea edx, [ebp - 0x38]
push edx
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0xc], eax
push 0x41b074
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c897
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0xc], eax
jmp 0x40c8b8
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x40c8f3
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
cmp edx, 0x7e
jne 0x40c8d3
mov eax, dword [ebp + 0x10]
mov byte [eax], 0xa
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
cmp edx, 0x7c
jne 0x40c8e4
mov eax, dword [ebp + 0x10]
mov byte [eax], 9
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp + 0x10], eax
jmp 0x40c8b8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fa05
mov esp, ebp
pop ebp
ret 0x14