Function at 0x40fc40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x492830
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae680]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x3c], 0
call fcn.0045ded3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40fc8d
push 0x80004005
call fcn.00407700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x3c], 1
mov edi, dword [esp + 0x4c]
cmp dword [edi + 0xc], 0
je 0x40fcb1
call fcn.0040c6b0
mov ecx, dword [esp + 0x48]
push ecx
push 0
push str.CmdNums
push str.TotalCmdNumbers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x40fce4
call fcn.0044c190
mov ebx, 1
mov dword [eax + 0x248], ebx
jmp 0x40fce9
mov ebx, 1
mov dword [esp + 0x44], 0
test esi, esi
jle 0x40ff4d
lea esp, [esp]
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x18]
push str.CmdInfo_d
push eax
call fcn.00407320
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0040c270
mov byte [esp + 0x3c], 2
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
mov esi, dword [esp + 0x48]
mov ecx, ebx
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40fd50
push 0x104
lea ecx, [esp + 0x24]
call fcn.004075c0
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x104
push edx
push 0x49b083
push str.KeyName
push ebx
call edi
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 8]
mov esi, dword [esp + 0x48]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40fd9c
push 0x104
lea ecx, [esp + 0x2c]
call fcn.004075c0
mov edx, dword [esp + 0x28]
push esi
push 0x104
push edx
push 0x49b083
push str.OptType
push ebx
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 8]
mov esi, dword [esp + 0x48]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40fdde
push 0x104
lea ecx, [esp + 0x28]
call fcn.004075c0
mov edx, dword [esp + 0x24]
push esi
push 0x104
push edx
push 0x49b083
push str.RegName
push ebx
call edi
mov ecx, dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0
push str.Addr
push ebx
call esi
mov edx, dword [esp + 0x48]
push edx
push 0
push str.Data
push ebx
mov word [esp + 0x3c], ax
call esi
mov esi, dword [esp + 0x4c]
mov byte [esp + 0x2e], al
mov eax, dword [esi + 8]
push 0
push eax
call fcn.0040c380
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov esi, dword [ebx + 8]
lea edi, [ebx + 8]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40fe8d
cmp dword [esi + 0xc], 0
jl 0x40fe81
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40fe81
push eax
call fcn.00407730
mov dword [esp + 0x1c], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fe76
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x40fe8d
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00407670
lea edx, [esp + 0x24]
lea ecx, [edi + 4]
push edx
call fcn.004077a0
lea eax, [esp + 0x28]
lea ecx, [edi + 8]
push eax
call fcn.004077a0
mov cx, word [esp + 0x2c]
mov word [edi + 0xc], cx
mov dl, byte [esp + 0x2e]
mov ecx, dword [esp + 0x4c]
mov byte [edi + 0xe], dl
mov eax, dword [ecx + 8]
test eax, eax
je 0x40fec6
mov dword [eax], ebx
jmp 0x40fec9
mov dword [ecx + 4], ebx
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [ecx + 8], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov ebx, 1
jl 0x40fd00
mov edi, dword [esp + 0x4c]
call fcn.0045ded3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ff67
push 0x80004005
call fcn.00407700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
push 0x2710
lea eax, [ebp + 4]
push 0
push eax
mov byte [esp + 0x48], 3
call fcn.00478090
mov dword [ebp + 0x2714], 0
mov esi, dword [edi + 4]
add esp, 0xc
test esi, esi
je 0x4101ae
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x20]
lea edi, [eax + 8]
push ecx
call fcn.00408410
mov edx, dword [esp + 0x28]
push str.RegWrite
push edx
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x40ffe0
mov eax, dword [ebp + 0x2714]
mov byte [eax + ebp + 4], 0x10
jmp 0x4100ff
mov ecx, dword [esp + 0x28]
push str.RegRead
push ecx
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x41000b
mov edx, dword [ebp + 0x2714]
mov byte [edx + ebp + 4], 0x20
jmp 0x4100ff
mov eax, dword [esp + 0x28]
push str.WriteAnd
push eax
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x410036
mov ecx, dword [ebp + 0x2714]
mov byte [ecx + ebp + 4], 0x11
jmp 0x4100ff
mov edx, dword [esp + 0x28]
push str.ReadAnd
push edx
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x410061
mov eax, dword [ebp + 0x2714]
mov byte [eax + ebp + 4], 0x21
jmp 0x4100ff
mov ecx, dword [esp + 0x28]
push str.WriteOR
push ecx
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x410089
mov edx, dword [ebp + 0x2714]
mov byte [edx + ebp + 4], 0x12
jmp 0x4100ff
mov eax, dword [esp + 0x28]
push str.ReadOR
push eax
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x4100b1
mov ecx, dword [ebp + 0x2714]
mov byte [ecx + ebp + 4], 0x22
jmp 0x4100ff
mov edx, dword [esp + 0x28]
push str.ReInit
push edx
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x4100d9
mov eax, dword [ebp + 0x2714]
mov byte [eax + ebp + 4], 0x30
jmp 0x4100ff
mov ecx, dword [esp + 0x28]
push str.InitEnd
push ecx
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x410105
mov edx, dword [ebp + 0x2714]
mov byte [edx + ebp + 4], 0x31
add dword [ebp + 0x2714], ebx
mov ecx, dword [ebp + 0x2714]
mov eax, dword [esp + 0x2c]
shr eax, 8
mov byte [ecx + ebp + 4], al
add dword [ebp + 0x2714], ebx
mov eax, dword [ebp + 0x2714]
mov dl, byte [esp + 0x2c]
mov byte [eax + ebp + 4], dl
add dword [ebp + 0x2714], ebx
mov eax, dword [ebp + 0x2714]
mov cl, byte [esp + 0x2e]
mov byte [eax + ebp + 4], cl
mov eax, dword [esp + 0x28]
add dword [ebp + 0x2714], ebx
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40ffa4
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc