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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416ab7
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.004114e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x324]
call fcn.00414f0c
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x40bc77
push 5
mov ecx, dword [ebp - 0x440]
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x40bc99
mov ecx, dword [ebp - 0x440]
call fcn.0040ced3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call sub.MFC42.DLL_CString::CString
jmp 0x40bf7d
mov ecx, 0x41d560
call fcn.00402dcd
test eax, eax
jne 0x40bcbe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call sub.MFC42.DLL_CString::CString
jmp 0x40bf7d
mov ecx, dword [ebp - 0x440]
add ecx, 0xf4
push ecx
mov ecx, 0x41d560
call fcn.00402bb2
and eax, 0xff
test eax, eax
jne 0x40bcf5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call sub.MFC42.DLL_CString::CString
jmp 0x40bf7d
call fcn.0040baca
mov edx, dword [ebp - 0x440]
mov dword [edx + 0xfc], 1
push 0
push 0x2af8
push 0x3e9
mov ecx, dword [ebp - 0x440]
call fcn.004114b0
mov ecx, 0x41d468
call fcn.00404f1c
and eax, 0xff
test eax, eax
jne 0x40bd5d
lea ecx, [ebp - 0x42c]
call fcn.00412b80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x42c]
call fcn.00412f9a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00412b97
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 0x41cbb0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x41cbbc
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 0x41cbcc
push 0x41cbd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x320]
jle 0x40bf6b
xor ecx, ecx
test ecx, ecx
je 0x40bf6b
lea ecx, [ebp - 0x430]
call fcn.00413370
mov byte [ebp - 4], 2
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0x41d62c
push str.updateurl
push 0x41cbe4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x41cbec
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.004135b2
and eax, 0xff
test eax, eax
je 0x40bf5c
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 0x41cbfc
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 0x41cc00
push str.setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 0x1388
push 0x3f1
mov ecx, dword [ebp - 0x440]
call fcn.004114b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.00413387
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