Function at 0x442f40
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x130
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push 0x103
lea eax, [esp + 0x31]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x38], 0
call fcn.00482280
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x2c]
push 0x5c
push edx
call fcn.00485b90
add esp, 8
test eax, eax
jne 0x442fab
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004820da
add esp, 0x130
ret
mov byte [eax], 0
lea eax, [esp + 0x2c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x442fb3
mov ecx, dword [str.PhaseCheck.ini]
mov edx, dword [0x4b27d4]
mov dword [eax], ecx
mov ecx, dword [0x4b27d8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [eax + 4], edx
mov edx, dword [0x4b27dc]
push ebp
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
xor eax, eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
lea eax, [esp + 0x38]
push eax
push 0x14
lea ecx, [esp + 0x2c]
push ecx
push str.SP09
push str.MAGIC_NUMBER
push str.VERSION
mov byte [esp + 0x3c], 0
call ebx
lea edx, [esp + 0x24]
push str.SP09
push edx
call fcn.00498bac
add esp, 8
test eax, eax
jne 0x443168
lea eax, [esp + 0x38]
push eax
push 0
push str.PASS_VALUE
push str.STATE_FLAG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x100
lea edi, [esi + 0x6dc]
push 0
push edi
mov ebp, eax
mov dword [esi + 0x9c8], 1
call fcn.00482280
add esp, 0xc
test ebp, ebp
jne 0x44309c
mov ecx, 0xffff
mov edx, 0x7fff
mov byte [esi + 0x7b7], 1
mov word [esi + 0x7d8], cx
mov word [esi + 0x7da], dx
jmp 0x4430a3
mov byte [esi + 0x7b7], 0
mov eax, dword [str.PASS]
lea edx, [esp + 0x38]
push edx
push 5
mov dword [esi + 0x7b8], eax
mov cl, byte [0x4af48c]
push str.STATION_NUMBER
push str.STATION
mov byte [esi + 0x7bc], cl
mov dword [edi], 0x53503039
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
movzx eax, al
mov dword [esi + 0x710], eax
test eax, eax
je 0x443374
cmp eax, 0xf
jg 0x443374
xor edi, edi
test eax, eax
jle 0x44336d
lea ebp, [esi + 0x714]
xor eax, eax
inc edi
push edi
push str.STATION
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
lea eax, [esp + 0x18]
push str._s__d
push eax
mov byte [esp + 0x20], 0
call fcn.004820e9
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
push 9
push ebp
push 0x4b2775
lea edx, [esp + 0x20]
push edx
push str.STATION
call ebx
add ebp, 0xa
cmp edi, dword [esi + 0x710]
jl 0x443101
mov eax, 1
jmp 0x443376
lea eax, [esp + 0x24]
push str.SP15
push eax
call fcn.00498bac
add esp, 8
test eax, eax
jne 0x4432a7
lea ecx, [esp + 0x38]
push ecx
push eax
push str.PASS_VALUE
push str.STATE_FLAG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x1ec
lea edi, [esi + 0x7dc]
push 0
push edi
mov ebp, eax
mov dword [esi + 0x9c8], 2
call fcn.00482280
add esp, 0xc
test ebp, ebp
jne 0x4431d6
or eax, 0xffffffff
mov byte [esi + 0x99d], 1
mov dword [esi + 0x9c0], eax
mov dword [esi + 0x9c4], eax
jmp 0x4431dd
mov byte [esi + 0x99d], 0
mov edx, dword [str.PASS]
lea ecx, [esp + 0x38]
push ecx
push 5
mov dword [esi + 0x99e], edx
mov al, byte [0x4af48c]
push str.STATION_NUMBER
push str.STATION
mov byte [esi + 0x9a2], al
mov dword [edi], 0x53503135
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
movzx eax, al
mov dword [esi + 0x860], eax
test eax, eax
je 0x443374
cmp eax, 0x14
jg 0x443374
xor edi, edi
test eax, eax
jle 0x44336d
lea ebp, [esi + 0x864]
jmp 0x443240
inc edi
push edi
xor eax, eax
push str.STATION
lea edx, [esp + 0x18]
push str._s__d
push edx
mov byte [esp + 0x20], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call fcn.004820e9
add esp, 0x10
lea eax, [esp + 0x38]
push eax
push 0xe
push ebp
push 0x4b2775
lea ecx, [esp + 0x20]
push ecx
push str.STATION
call ebx
add ebp, 0xf
cmp edi, dword [esi + 0x860]
jl 0x443240
mov eax, 1
jmp 0x443376
lea edx, [esp + 0x24]
push str.SP05
push edx
call fcn.00498bac
add esp, 8
test eax, eax
jne 0x443374
push 0x6d8
push eax
lea edi, [esi + 4]
push edi
mov dword [esi + 0x9c8], eax
call fcn.00482280
add esp, 0xc
lea eax, [esp + 0x38]
push eax
push 5
push str.STATION_NUMBER
push str.STATION
mov dword [edi], 0x53503035
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [esi + 9], al
test al, al
je 0x443374
cmp al, 0xc
ja 0x443374
xor edi, edi
test al, al
jbe 0x44336d
lea ebp, [esi + 0xdc]
lea ecx, [ecx]
inc edi
push edi
xor eax, eax
push str.STATION
lea ecx, [esp + 0x18]
push str._s__d
push ecx
mov byte [esp + 0x20], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call fcn.004820e9
add esp, 0x10
lea edx, [esp + 0x38]
push edx
push 0xf
push ebp
push 0x4b2775
lea eax, [esp + 0x20]
push eax
push str.STATION
call ebx
movzx ecx, byte [esi + 9]
sub ebp, 0xffffff80
cmp edi, ecx
jl 0x443310
mov eax, 1
jmp 0x443376
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.004820da
add esp, 0x130
ret