Function at 0x40c3b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x41a178]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x41b2f0], 0
je 0x40c3d6
cmp dword [ebp + 0xc], 0
jne 0x40c534
mov dword [0x41b2f0], 1
mov byte [0x41af30], 0
push str.WWWBATCH.INI
push 0x14
lea eax, [ebp - 0x24]
push eax
push 0x419f9c
push str.Language
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x419f9c
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c435
push 0x14
lea edx, [ebp - 0x24]
push edx
push 0x419fcc
push str.sLanguage
push str.INTL
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0x104
push 0x41af30
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 0x40c45b
mov byte [0x41af30], 0
jmp 0x40c484
push 0x41af30
call fcn.0040c700
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c47d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
jmp 0x40c484
mov byte [0x41af30], 0
push str.WWWDLANG
push 0x41af30
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x419fdc
push 0x41af30
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x24]
push edx
push 0x41af30
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [ebp - 0x148]
push eax
push 0x41af30
call fcn.0040dc40
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40c524
lea ecx, [ebp - 0x24]
push ecx
push str.WWWDLANG
push str._s._s
push 0x41af30
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
lea edx, [ebp - 0x148]
push edx
push 0x41af30
call fcn.0040dc40
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40c524
push 0x104
lea eax, [ebp - 0x148]
push eax
push 0x41af30
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x3c], 0
je 0x40c534
mov dword [0x41b2f0], 2
cmp dword [ebp + 0xc], 0x64
jl 0x40c5e9
cmp dword [0x41b2f0], 2
jne 0x40c5e9
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.0040fe44
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x40c591
push 0x41af30
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x419f9c
lea edx, [ebp - 0x38]
push edx
push 0x419b6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0xc], eax
jmp 0x40c5b5
push 0x41af30
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x419f9c
lea edx, [ebp - 0x38]
push edx
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0xc], eax
push 0x419f9c
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c5e7
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 0x40c608
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 0x40c643
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
cmp edx, 0x7e
jne 0x40c623
mov eax, dword [ebp + 0x10]
mov byte [eax], 0xa
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
cmp edx, 0x7c
jne 0x40c634
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 0x40c608
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 0x14