Function at 0x43085d
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5205d8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
cmp eax, 0x12e3
push ebx
push ebp
push esi
push edi
ja 0x4309e3
je case.0x4307dc.0
sub eax, 0x486
je case.0x4307dc.0
sub eax, 0xe52
je 0x4307c1
sub eax, 0xa
jne 0x4309f3
jmp case.0x4307dc.0
mov esi, dword [esp + 0x40]
xor ebp, ebp
cmp esi, ebp
je case.0x4307dc.0
mov eax, dword [esp + 0x3c]
cmp eax, 7
ja case.default.0x4307dc
jmp dword [eax*4 + 0x430bac]
mov eax, dword [esi + 0x5e8]
mov dword [esi + 0xe98], ebp
mov dword [esi + 0x108], 0x64
mov dword [esi + 0xe9c], 0x40590000
mov ecx, dword [0x56fbd8]
mov dword [esp + 0x38], eax
cmp ecx, ebp
jne 0x430835
cmp dword [esi + 0x10c], 8
jne 0x430826
cmp eax, ebp
jne 0x430826
cmp dword [esi + 0x5ec], ebp
jne 0x430835
mov eax, dword [esi]
mov ecx, 0x571ae8
push eax
call fcn.0042eaa0
jmp 0x430842
mov ecx, dword [esi]
push ecx
mov ecx, 0x571ae8
call fcn.0042ec80
lea edi, [esi + 0x114]
push edi
call fcn.00421ef0
add esp, 4
mov ecx, 0x571ae8
mov dword [esi + 0x284], eax
push esi
push 1
push 0x12d8
call fcn.0042f110
mov edx, dword [esi]
mov ecx, 0x571ae8
push edx
call fcn.004312e0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x14]
mov bl, 3
push eax
mov byte [esp + 0x34], bl
call fcn.00423be0
add esp, 4
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
push eax
push 0x3e8
push 0x3e8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x56f01c
push edi
push str.download
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 8]
test eax, eax
je 0x430904
mov ebp, 1
lea edx, [esp + 0x18]
push edx
call fcn.00423be0
mov eax, dword [eax]
add esp, 4
lea ecx, [esi + 0x9f4]
push eax
lea eax, [esi + 0x21c]
push eax
push ecx
push str.download
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
push edx
call fcn.00422eb0
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x430957
push 1
push ebp
push esi
mov ecx, 0x571ae8
call fcn.00430ee0
lea ecx, [esp + 0x40]
mov dword [esi + 0x5e4], 0
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp case.0x4307dc.0
push 4
push ebp
push esi
mov ecx, 0x571ae8
call fcn.00430ee0
jmp case.0x4307dc.0
mov eax, dword [esi]
push 4
push eax
mov ecx, 0x571ae8
call fcn.0042e980
push 3
push ebp
push esi
mov ecx, 0x571ae8
call fcn.00430ee0
jmp case.0x4307dc.0
mov ecx, dword [esi]
push 2
push ecx
jmp 0x4309c6
mov edx, dword [esi]
push 3
push edx
mov ecx, 0x571ae8
call fcn.0042e980
push 2
push ebp
push esi
mov ecx, 0x571ae8
call fcn.00430ee0
jmp case.0x4307dc.0
sub eax, 0x12e4
je case.0x4307dc.0
sub eax, 4
je 0x4309fa
xor eax, eax
jmp 0x430b97
mov esi, dword [esp + 0x40]
test esi, esi
je case.0x4307dc.0
mov eax, dword [esi]
lea edi, [esi + 0xe88]
push edi
push eax
call fcn.00476bf0
add esp, 8
mov dword [esi + 0xe84], eax
test eax, eax
je 0x430ac8
cmp dword [edi], 0
jne 0x430ac8
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi]
lea edx, [esp + 0x3c]
push ecx
push 0x562408
push edx
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::Format
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 0x10
push eax
lea eax, [esp + 0x3c]
push str._08X
push eax
call sub.MFC42.DLL_CString::Format
lea ecx, [esp + 0x28]
push ecx
call fcn.00423be0
mov eax, dword [eax]
mov edx, dword [esp + 0x48]
add esp, 0x10
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
push str.activate
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x571b88]
mov edx, dword [0x571b8c]
xor ecx, ecx
test eax, eax
je 0x430b14
mov ebx, edx
sub ebx, eax
sar ebx, 3
cmp ecx, ebx
jae 0x430b14
mov ebx, dword [eax + ecx*8]
mov ebp, dword [esi]
cmp ebx, ebp
je 0x430af0
inc ecx
jmp 0x430ad5
mov edx, dword [esi + 0xe84]
test edx, edx
je 0x430b05
mov edx, 1
mov dword [eax + ecx*8 + 4], edx
jmp 0x430b4d
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
setne dl
mov dword [eax + ecx*8 + 4], edx
jmp 0x430b4d
mov eax, dword [esi + 0xe84]
mov ecx, dword [esi]
test eax, eax
mov dword [esp + 0x20], ecx
je 0x430b2e
mov dword [esp + 0x24], 1
jmp 0x430b3b
mov ecx, dword [edi]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x20]
push ecx
push 1
push edx
mov ecx, 0x571b84
call fcn.00431c50
mov edx, dword [esi]
mov ecx, 0x571ae8
push edx
push esi
push 0x12e8
call fcn.0042f110
mov eax, dword [esi]
mov ecx, 0x571ae8
push eax
call fcn.0042eb10
cmp dword [0x56fbe0], 2
jne case.0x4307dc.0
mov eax, dword [esi + 0xe84]
test eax, eax
je case.0x4307dc.0
cmp dword [edi], 0
jne case.0x4307dc.0
mov ecx, dword [esi]
push ecx
mov ecx, 0x571ae8
call fcn.0042eda0
mov eax, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc