Function at 0x4031b8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 0xffff9280
push edi
mov ebx, ecx
cmp eax, 8
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
ja case.0x40319a.28033
jmp dword [eax*4 + 0x40353c]
push 1
mov ecx, ebx
call fcn.004012c6
push 0x40
mov ecx, ebx
call fcn.004012a8
jmp case.0x40319a.28033
mov cl, byte [0x46b9ac]
push str.Com.ini
lea edx, [ebp + 0xc]
push 0x46b740
push edx
mov byte [ebp + 0x13], cl
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call esi
cmp eax, 0xffffffff
je 0x403204
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x403206
xor edi, edi
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x403399
push str.Com.ini
lea eax, [ebp - 0x18]
push 0x46b740
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [ebp - 0x124]
push eax
push 0x104
push ecx
push 0x46b324
push str.File_Watch
push 0x465898
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea edi, [ebp - 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x125], 0x2b
jne 0x403286
lea edi, [ebp - 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp + ecx - 0x125], al
lea edx, [ebp - 0x124]
lea ecx, [ebp + 8]
push edx
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 4], 0
call esi
or esi, 0xffffffff
cmp eax, esi
je 0x403375
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
push ecx
mov ecx, 0x46b73c
call sub.MFC42.DLL_CString::operator
mov edx, dword [0x46b73c]
mov ecx, ebx
push edx
call fcn.004010d7
test eax, eax
jne 0x403341
push 0x465894
lea eax, [ebp - 0x20]
push str.IDS_MAIN_ERR_NO_CONFIG_FILE
push eax
call fcn.00401154
add esp, 0xc
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
mov ecx, ebx
call fcn.0040183e
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
jmp case.0x40319a.28033
mov ecx, ebx
call fcn.0040145b
mov ecx, ebx
call fcn.00401302
mov edx, dword [0x46b73c]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov al, byte [ebp + 0x13]
mov cl, byte [0x46b9ac]
cmp al, cl
je 0x40338e
mov ecx, ebx
call fcn.004019b0
test eax, eax
jne 0x40338e
push 0
mov ecx, ebx
call fcn.0040183e
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
jmp case.0x40319a.28033
mov ecx, ebx
call fcn.0040180c
push 1
jmp 0x403377
push 0
mov ecx, ebx
call fcn.0040183e
jmp case.0x40319a.28033
mov eax, dword [ebp + 0x10]
cmp eax, 1
jb 0x4033bb
cmp eax, 0x40
jae 0x4033c7
mov dword [0x46586c], eax
jmp 0x4033d1
mov dword [0x46586c], 1
jmp 0x4033d1
mov dword [0x46586c], 0x40
mov al, byte [ebx + 0x16bb8]
test al, al
je case.0x40319a.28033
mov ecx, dword [ebx + 0x20]
push 0
push 0x3e8
push 0x7db
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp case.0x40319a.28033
mov eax, dword [0x46b820]
mov esi, dword [ebp + 0xc]
test eax, eax
mov dword [ebp + 8], esi
je 0x40343b
mov edx, dword [ebx + 0x20]
push 0x7d8
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x46b820]
push 0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
push eax
mov eax, dword [ebx + 0x20]
push 0x7d8
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp + 0x10]
cmp eax, 0xff
jne 0x403503
mov ecx, dword [0x46586c]
xor eax, eax
mov dword [ebp + 0x10], eax
cmp eax, ecx
jae 0x4034fa
mov esi, ecx
imul esi, dword [ebp + 8]
add esi, eax
mov dword [ebp - 0x14], esi
lea edx, [esi + esi*8]
lea edi, [esi + edx*4]
shl edi, 3
cmp dword [edi + 0x46bf50], 0xffffffff
je 0x4034f1
test dword [edi + 0x46bf5c], 0x80000000
jne 0x4034f1
push esi
mov dword [ebp - 4], 2
call fcn.0040124e
mov eax, dword [edi + 0x46bf50]
add esp, 4
cmp eax, 0xffffffff
je 0x4034c3
test dword [edi + 0x46bf5c], 0x80000000
jne 0x4034c3
push 0
push eax
call dword [0x46bf38]
add esp, 8
push esi
call fcn.0040132a
add esp, 4
jmp 0x4034e1
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040132a
add esp, 4
mov eax, 0x4034de
ret
mov ecx, dword [0x46586c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
inc eax
mov dword [ebp + 0x10], eax
jmp 0x403454
mov ecx, ebx
call fcn.0040168b
jmp case.0x40319a.28033
mov ecx, dword [0x46586c]
imul ecx, esi
lea edx, [ecx + eax - 1]
mov ecx, ebx
push edx
call fcn.00401514
jmp case.0x40319a.28033
mov ecx, ebx
call fcn.00401438
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc