Function at 0x46f385
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f57ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x14]
call fcn.004048c0
mov dword [ebp - 4], 0
mov eax, dword [0x53b73c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x2b8], 0
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x1280], 0
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x1284], 0
push 0x5fd
mov ecx, dword [ebp - 0x5c]
call fcn.004dc934
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0xd00], 0
jne 0x46f40a
push 0x531088
mov ecx, dword [ebp - 0x18]
call fcn.004dcbcb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0xd00], 0
je 0x46f453
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0xd00], 0
push 0
push 0x1f4
push 0x997
mov ecx, dword [ebp - 0x5c]
call fcn.004048f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
cmp dword [0x53bc8c], 0
je 0x46f484
push 0
push 0x53c60c
push str.Thread_is_running
mov ecx, dword [ebp - 0x5c]
call fcn.004db06e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
mov dword [ebp - 0x38], 0
jmp 0x46f496
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0x11
jge 0x46f4f2
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x4e68
mov eax, dword [ebp - 0x5c]
mov byte [eax + edx + 0x2fc4], 0xfe
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x5c]
cmp dword [edx + ecx*4 + 0x564a8], 0
je 0x46f4d0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + eax*4 + 0x564a8]
mov byte [edx], 0xfe
cmp dword [ebp - 0x38], 0x10
jge 0x46f4f0
mov eax, dword [0x53bd7c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0
mov edx, dword [ebp - 0x5c]
mov ecx, dword [edx + 0xd0]
call fcn.004072d7
jmp 0x46f48d
mov dword [ebp - 0x38], 0
jmp 0x46f504
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x11
jge 0x46f52f
push 0x92
push 0
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x92
mov edx, dword [ebp - 0x5c]
lea eax, [edx + ecx + 0x1838]
push eax
call fcn.004b9030
add esp, 0xc
jmp 0x46f4fb
cmp dword [0x53b5a4], 0
jne 0x46f541
cmp dword [0x53b5a0], 0
je 0x46f569
mov dword [0x53bc8c], 1
push 1
mov ecx, dword [ebp - 0x5c]
call fcn.00499f88
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x21fc], 0
je 0x46f5bd
mov ecx, dword [ebp - 0x5c]
call fcn.0046d571
test eax, eax
jne 0x46f595
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
mov dword [0x53bc8c], 1
push 2
mov ecx, dword [ebp - 0x5c]
call fcn.00499f88
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
cmp dword [0x53bec8], 0
je 0x46f670
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x2db4]
add eax, 1
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x2db4], eax
cmp dword [0x53bec8], 1
jne 0x46f61c
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x2db4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
je 0x46f60d
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x241c], 0
jmp 0x46f61a
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x241c], 1
jmp 0x46f632
cmp dword [0x53bec8], 2
jne 0x46f632
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x241c], 0
push 0x14
push 0
lea edx, [ebp - 0x34]
push edx
call fcn.004b9030
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x2db4]
push ecx
mov edx, dword [0x53bec8]
push edx
push str.Step__d__d
lea eax, [ebp - 0x34]
push eax
call fcn.004b953d
add esp, 0x10
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0049b192
mov ecx, dword [ebp - 0x5c]
call fcn.0046f355
test eax, eax
jne 0x46f690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
mov edx, dword [ebp - 0x5c]
add edx, 0x8ec
push edx
push 0
push str.SNRULE
push 0x5310c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x1238], eax
mov edx, dword [ebp - 0x5c]
add edx, 0x8ec
push edx
push 0
push str.AUTODATEADJUST
push 0x5310e4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x123c], eax
push 0x15
push 0
mov edx, dword [ebp - 0x5c]
add edx, 0x126a
push edx
call fcn.004b9030
add esp, 0xc
cmp dword [0x53bfa0], 0
je 0x46f720
mov eax, dword [ebp - 0x5c]
add eax, 0x8ec
push eax
push 0x15
mov ecx, dword [ebp - 0x5c]
add ecx, 0x126a
push ecx
push 0
push str.SERIALMASK
push 0x5310fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp - 0x5c]
movsx eax, byte [edx + 0x126a]
test eax, eax
jne 0x46f756
mov ecx, dword [ebp - 0x5c]
add ecx, 0x8ec
push ecx
push 0x15
mov edx, dword [ebp - 0x5c]
add edx, 0x126a
push edx
push 0
push str.MASKSN
push 0x53110c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x123c], 0
je 0x46f7fa
mov ecx, dword [ebp - 0x10]
call fcn.004275ae
mov ecx, dword [ebp - 0x5c]
add ecx, 0x8ec
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x5c
push edx
push 0x531118
push 0x531120
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x5c]
add eax, 0x8ec
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x71
push ecx
push 0x53112c
push 0x531134
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x53bfa0], 0
je 0x46f7fa
mov edx, dword [ebp - 0x5c]
add edx, 0x8ec
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x5c
push eax
push 0x531140
push 0x531148
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x5c]
add ecx, 0x8ec
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x71
push edx
push 0x531150
push 0x53115c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x15
push 0
mov eax, dword [ebp - 0x5c]
add eax, 0x1240
push eax
call fcn.004b9030
add esp, 0xc
push 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
push ecx
mov edx, dword [ebp - 0x5c]
add edx, 0x1240
push edx
call fcn.004b96d0
add esp, 0xc
push 0x15
push 0
mov eax, dword [ebp - 0x5c]
add eax, 0x1255
push eax
call fcn.004b9030
add esp, 0xc
push 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0x71
push ecx
mov edx, dword [ebp - 0x5c]
add edx, 0x1255
push edx
call fcn.004b96d0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
add eax, 0x8ec
push eax
push 0
push str.SNBYTE
push 0x53116c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x1288], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x1288], 0
jne 0x46f8c3
mov eax, dword [ebp - 0x5c]
add eax, 0x8ec
push eax
push 0
push str.SNLEN
push 0x531180
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x1288], eax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x1288]
add eax, 0xc
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x1288], eax
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x128c], 0
mov dword [ebp - 0x38], 0
jmp 0x46f8e2
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x1288]
add edx, 1
cmp dword [ebp - 0x38], edx
jge 0x46f91c
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x38]
movsx ecx, byte [eax + 0x126a]
cmp ecx, 0x23
jne 0x46f91a
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x128c]
add eax, 1
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x128c], eax
jmp 0x46f8d9
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x2204], 0
je 0x46f988
mov dword [0x53bc8c], 1
push 0x14
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.004b9030
add esp, 0xc
push 0x14
lea ecx, [ebp - 0x34]
push ecx
push 0x898
mov ecx, dword [ebp - 0x5c]
call fcn.004dc9be
lea edx, [ebp - 0x34]
push edx
call fcn.004b9487
add esp, 4
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x2200], eax
push 4
mov ecx, dword [ebp - 0x5c]
call fcn.00499f88
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x268c], 0
je 0x46f9bc
mov dword [0x53bc8c], 1
push 3
mov ecx, dword [ebp - 0x5c]
call fcn.00499f88
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
cmp dword [0x53bec8], 2
jne 0x46fb89
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2db4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x46fb89
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x1238], 2
mov eax, dword [ebp - 0x5c]
movsx ecx, byte [eax + 0x122d]
test ecx, ecx
jne 0x46fb89
push 8
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004b9030
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004b9030
add esp, 0xc
push 0x10
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x12e8]
add edx, 0xeff0
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004b96d0
add esp, 0xc
movsx ecx, byte [ebp - 0x48]
cmp ecx, 0x30
jl 0x46fada
movsx edx, byte [ebp - 0x48]
cmp edx, 0x39
jg 0x46fada
push 0x14
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.004b9030
add esp, 0xc
push 4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.004b96d0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
call fcn.004b9487
add esp, 4
mov dword [ebp - 0x4c], eax
push 0x14
push 0
lea ecx, [ebp - 0x34]
push ecx
call fcn.004b9030
add esp, 0xc
push 6
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.004b96d0
add esp, 0xc
movsx ecx, byte [ebp - 0x2f]
cmp ecx, 0x5f
jne 0x46faba
mov byte [ebp - 0x2f], 0x20
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x4c]
sub eax, 0x790
push eax
push str._C_s
lea ecx, [ebp - 0x20]
push ecx
call fcn.004b953d
add esp, 0x10
jmp 0x46faec
push 7
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004b96d0
add esp, 0xc
mov dword [ebp - 0x38], 0
jmp 0x46fafe
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 8
jge 0x46fb89
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x12ac]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov dl, byte [ebp + edx - 0x1f]
mov byte [eax + ecx + 0x2e], dl
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x12ac]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov al, byte [ebp + eax - 0x20]
mov byte [ecx + edx + 0x2f], al
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x12ac]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cl, byte [edx + eax + 0x2e]
test ecx, ecx
jne 0x46fb5d
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x12ac]
mov ecx, dword [ebp - 0x38]
mov byte [eax + ecx + 0x2e], 0x20
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x12ac]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [eax + ecx + 0x2f]
test edx, edx
jne 0x46fb84
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x12ac]
mov edx, dword [ebp - 0x38]
mov byte [ecx + edx + 0x2f], 0x20
jmp 0x46faf5
cmp dword [0x53bec8], 0
je 0x46fbc6
push 0x400
mov ecx, dword [ebp - 0x5c]
call fcn.004dc934
mov dword [ebp - 0x50], eax
push 0
mov ecx, dword [ebp - 0x50]
call fcn.004dcd52
push 0x8e1
mov ecx, dword [ebp - 0x5c]
call fcn.004dc934
mov dword [ebp - 0x50], eax
push 0
mov ecx, dword [ebp - 0x50]
call fcn.004dcd52
push 0
push 0x3e8
push 0x479
mov ecx, dword [ebp - 0x5c]
call fcn.004048f0
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0xcfc], 0
je 0x46fead
mov dword [0x53bc8c], 1
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x21c], 0xffff
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x220], 0
mov ecx, dword [ebp - 0x5c]
call fcn.00498266
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
mov cl, byte [eax + 0x118]
test ecx, ecx
je 0x46fc5f
push 6
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.004b9030
add esp, 0xc
mov byte [ebp - 0x58], pe_nt_image_headers32
mov byte [ebp - 0x57], 0x50
mov byte [ebp - 0x56], 1
mov byte [ebp - 0x55], 0
mov byte [ebp - 0x54], 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
add ecx, 0x119
push ecx
call fcn.004a1eed
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0xd00], 1
push 1
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.00499eb0
push 0x790
mov ecx, dword [ebp - 0x5c]
call fcn.004dc934
mov dword [ebp - 0x50], eax
push 0x531194
mov ecx, dword [ebp - 0x50]
call fcn.004dcbcb
push 0x54d
mov ecx, dword [ebp - 0x5c]
call fcn.004dc934
mov dword [ebp - 0x50], eax
push 0x53c610
mov ecx, dword [ebp - 0x50]
call fcn.004dcbcb
mov ecx, dword [ebp - 0x5c]
call fcn.0046ff87
push 6
push 0
push 0x53bd20
call fcn.004b9030
add esp, 0xc
push 0x44
push 0
mov eax, dword [ebp - 0x5c]
add eax, 0xd10
push eax
call fcn.004b9030
add esp, 0xc
push 0x44
push 0
mov ecx, dword [ebp - 0x5c]
add ecx, 0xd54
push ecx
call fcn.004b9030
add esp, 0xc
push 0x11
push 0xff
mov edx, dword [ebp - 0x5c]
add edx, 0xd98
push edx
call fcn.004b9030
add esp, 0xc
mov dword [ebp - 0x38], 0
jmp 0x46fd21
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x11
jge 0x46fdeb
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x35
mov dword [ecx + 0x53c264], 0
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x35
mov eax, dword [ebp - 0x5c]
mov dword [edx + 0x53c291], eax
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x35
mov dword [ecx + 0x53c268], 0
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x35
mov dword [edx + 0x53c274], 0
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x35
mov dword [eax + 0x53c278], 0
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x35
mov dword [ecx + 0x53c270], 0
push 0x15
push 0
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x35
add edx, 0x53c27c
push edx
call fcn.004b9030
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + eax*4 + 0x564a8], 0
je 0x46fdc3
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + edx*4 + 0x564a8]
mov byte [ecx], 0xfe
push 0x92
push 0
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x92
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + edx + 0x1838]
push ecx
call fcn.004b9030
add esp, 0xc
jmp 0x46fd18
cmp dword [0x53bef0], 0
je 0x46fe4e
mov dword [ebp - 0x38], 1
jmp 0x46fe06
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0x11
jge 0x46fe4e
mov eax, dword [ebp - 0x38]
add eax, 0x608
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.004dc934
mov ecx, eax
call fcn.00404c40
test eax, eax
je 0x46fe3b
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x5c]
mov dword [edx + ecx*4 + 0x270], 1
jmp 0x46fe4c
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + eax*4 + 0x270], 0
jmp 0x46fdfd
mov dword [0x53b454], 0
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0xd04], 1
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
push 0x4711d4
call fcn.004ddeb5
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0xd0c], 0
push 0
push 0x3e8
push 0x996
mov ecx, dword [ebp - 0x5c]
call fcn.004048f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
jmp 0x46fece
mov dword [0x53bc8c], 1
mov ecx, dword [ebp - 0x5c]
call fcn.00499763
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dd6c1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret