Function at 0x40187f
Capabilities:
Read .ini file

Disassembly:
jmp 0x42b000
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x456f4b
push eax
mov eax, dword [0x46bce8]
mov dword fs:[0], esp
sub esp, 0x114
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x42b08a
mov esi, dword [esp + 0x134]
mov bl, byte [0x471d9c]
push 0
inc bl
mov eax, dword [esi*4 + 0x471898]
mov ecx, dword [esi*4 + 0x471998]
push eax
push ecx
push ecx
lea edx, [esi*4 + 0x471a98]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [0x471d9c], bl
call fcn.0040119a
mov eax, dword [esi*4 + 0x471b98]
lea edx, [esi*4 + 0x471c98]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push esi
call fcn.0040123a
add esp, 0x1c
mov ecx, ebp
call fcn.0040168b
test eax, eax
jne 0x42b223
mov eax, dword [0x46b820]
test eax, eax
je 0x42b0b1
mov eax, dword [ebp + 0x20]
push 0x7d8
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, ebp
call fcn.0040172b
mov ecx, ebp
call fcn.00401168
mov ecx, ebp
call fcn.00401933
mov ecx, ebp
call fcn.00401474
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.0040182a
mov ecx, dword [0x46b73c]
push ecx
push 0
push str.ResetBoard
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x42b10c
mov eax, dword [0x46b430]
test eax, eax
je 0x42b10c
mov ecx, ebp
call fcn.0040155a
mov eax, dword [0x46bce8]
test eax, eax
je 0x42b223
xor dl, dl
mov eax, 0x46863c
mov byte [esp + 0x13], dl
mov ecx, 0x40
cmp byte [eax], 0xff
je 0x42b130
inc dl
inc eax
dec ecx
jne 0x42b129
mov al, byte [0x471d9c]
mov byte [esp + 0x13], dl
cmp al, dl
jne 0x42b223
xor bl, bl
xor esi, esi
mov byte [esp + 0x14], bl
mov edi, 0x471b98
cmp byte [esi + 0x46863c], 0xff
je 0x42b1ca
cmp dword [edi], 0
je 0x42b1ca
mov eax, dword [0x46bb54]
test eax, eax
je 0x42b1ca
push str.Fail
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x138], 0
call fcn.004017f3
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push esi
call fcn.00401398
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov dl, byte [esp + 0x13]
inc bl
inc esi
add edi, 4
cmp bl, 0x40
mov byte [esp + 0x14], bl
jb 0x42b152
mov al, byte [0x4686c4]
xor ecx, ecx
add al, dl
lea edx, [esp + 0x20]
mov cl, al
mov byte [0x4686c4], al
push ecx
push 0x465b64
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x46b73c]
add esp, 0xc
lea ecx, [esp + 0x20]
push eax
push ecx
push str.ExcelStartIndex
push str.EXCEL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [0x471d9c], 0
cmp dword [esp + 0x138], 0xa0001
jne 0x42b252
mov edx, dword [ebp + 0x20]
push 0x7d7
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp + 0x20]
push 0
push 0x64
push 0x7d7
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret 8