Function at 0x40bc51
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416907
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push edi
mov dword [ebp - 0x440], ecx
push 0x3ef
mov ecx, dword [ebp - 0x440]
call fcn.00411330
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x324]
call fcn.00414d5c
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x40bcb7
push 5
mov ecx, dword [ebp - 0x440]
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x40bcd9
mov ecx, dword [ebp - 0x440]
call fcn.0040cf13
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call sub.MFC42.DLL_CString::CString
jmp 0x40bfbd
mov ecx, 0x41c540
call fcn.00402dcd
test eax, eax
jne 0x40bcfe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call sub.MFC42.DLL_CString::CString
jmp 0x40bfbd
mov ecx, dword [ebp - 0x440]
add ecx, 0xf4
push ecx
mov ecx, 0x41c540
call fcn.00402bb2
and eax, 0xff
test eax, eax
jne 0x40bd35
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call sub.MFC42.DLL_CString::CString
jmp 0x40bfbd
call fcn.0040bb0a
mov edx, dword [ebp - 0x440]
mov dword [edx + 0xfc], 1
push 0
push 0x2af8
push 0x3e9
mov ecx, dword [ebp - 0x440]
call fcn.00411300
mov ecx, 0x41c448
call fcn.00404fdc
and eax, 0xff
test eax, eax
jne 0x40bd9d
lea ecx, [ebp - 0x42c]
call fcn.004129d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x42c]
call fcn.00412dea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.004129e7
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x31c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x31b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x218], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x428], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov byte [eax], 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x31c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x41bbc8
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x41bbd4
lea ecx, [ebp - 0x31c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x114], 0
lea edx, [ebp - 0x31c]
push edx
push 0
push 0x41bbe4
push 0x41bbe8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x320]
jle 0x40bfab
xor ecx, ecx
test ecx, ecx
je 0x40bfab
lea ecx, [ebp - 0x430]
call fcn.004131c0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0x41c60c
push str.updateurl
push 0x41bbfc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x41bc04
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x430]
call fcn.00413402
and eax, 0xff
test eax, eax
je 0x40bf9c
mov byte [ebp - 0x43c], 0
xor ecx, ecx
mov dword [ebp - 0x43b], ecx
mov dword [ebp - 0x437], ecx
mov byte [ebp - 0x433], cl
mov edx, dword [ebp - 0x114]
push edx
push 0x41bc14
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x43c]
push edx
push 0x41bc18
push str.setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 0x1388
push 0x3f1
mov ecx, dword [ebp - 0x440]
call fcn.00411300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.004131d7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret