Function at 0x4046da
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
cmp dword [0x4124e4], 0
je 0x4046fd
cmp dword [ebp + 0xc], 0
jne 0x404885
mov dword [0x4124e4], 1
mov byte [0x415658], 0
push str.WWWBATCH.INI
push 0x14
lea eax, [ebp - 0x28]
push eax
push 0x4124f4
push str.Language
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4124f4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404760
push 0x14
lea eax, [ebp - 0x28]
push eax
push 0x41289c
push str.sLanguage
push str.INTL
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0x104
push 0x415658
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40478d
mov byte [0x415658], 0
jmp 0x4047c9
push 0x415658
call fcn.00404a2a
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4047c2
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov byte [eax], 0
jmp 0x4047c9
mov byte [0x415658], 0
push str.WWWDLANG
push 0x415658
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4128ac
push 0x415658
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x28]
push eax
push 0x415658
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [ebp - 0x13c]
push eax
push 0x415658
call fcn.00405ae8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x404871
lea eax, [ebp - 0x28]
push eax
push str.WWWDLANG
push str._s._s
push 0x415658
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
lea eax, [ebp - 0x13c]
push eax
push 0x415658
call fcn.00405ae8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x404871
push 0x104
lea eax, [ebp - 0x13c]
push eax
push 0x415658
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x38], 0
je 0x404885
mov dword [0x4124e4], 2
cmp dword [ebp + 0xc], 0x64
jl 0x404948
cmp dword [0x4124e4], 2
jne 0x404948
mov byte [ebp - 0x14], 0x58
mov byte [ebp - 0x13], 0
push 0xa
lea eax, [ebp - 0x13]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040c3a0
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x4048e9
push 0x415658
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0x4124f4
lea eax, [ebp - 0x14]
push eax
push 0x412408
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x34], eax
jmp 0x40490d
push 0x415658
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0x4124f4
lea eax, [ebp - 0x14]
push eax
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x34], eax
push 0x4124f4
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404943
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x34], eax
jmp 0x404967
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
test eax, eax
je 0x4049b1
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
cmp eax, 0x7e
jne 0x40498a
mov eax, dword [ebp + 0x10]
mov byte [eax], 0xa
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
cmp eax, 0x7c
jne 0x40499f
mov eax, dword [ebp + 0x10]
mov byte [eax], 9
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp + 0x10], eax
jmp 0x404967
mov eax, dword [ebp - 0x34]
jmp 0x4049b9
pop edi
pop esi
pop ebx
leave
ret 0x14