Function at 0x409c96
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7c1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x628
mov dword [ebp - 0x634], ecx
push 0
lea ecx, [ebp - 0x1a0]
call fcn.004168e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.004cc6d3
cmp eax, 1
jne 0x40a153
mov ecx, dword [ebp - 0x634]
add ecx, 0x73990
call fcn.004047c0
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], 0xffffffff
mov byte [ebp - 0x218], 0
mov dword [ebp - 0x20c], 0
jmp 0x409d25
mov eax, dword [ebp - 0x20c]
add eax, 1
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
cmp ecx, dword [ebp - 0x210]
jge 0x409db9
mov edx, dword [ebp - 0x20c]
push edx
push 0x4eb048
lea eax, [ebp - 0x1d4]
push eax
call fcn.004ba7bf
add esp, 0xc
push 0x52fa5c
push 0x104
mov ecx, dword [ebp - 0x634]
add ecx, 0x948
push ecx
push 0x52f878
lea edx, [ebp - 0x1d4]
push edx
push 0x4eb06c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x634]
add eax, 0x948
push eax
lea ecx, [ebp - 0x144]
push ecx
call fcn.004ba71e
add esp, 8
test eax, eax
jne 0x409db4
mov byte [ebp - 0x218], 1
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x214], edx
jmp 0x409db9
jmp 0x409d16
mov eax, dword [ebp - 0x218]
and eax, 0xff
test eax, eax
je 0x409f2d
mov ecx, dword [ebp - 0x214]
push ecx
push 0x4eb088
lea edx, [ebp - 0x208]
push edx
call fcn.004ba7bf
add esp, 0xc
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 0x7157c]
push ecx
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 0x71578]
push eax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 0x71574]
push edx
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 0x71570]
push ecx
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 0x7156c]
push eax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 0x71568]
push edx
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 0x71564]
push ecx
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 0x71560]
push eax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 0x7155c]
push edx
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 0x71558]
push ecx
push 0x4eb0ac
mov edx, dword [ebp - 0x634]
add edx, 0x948
push edx
call fcn.004ba7bf
add esp, 0x30
push 0x52fa5c
mov eax, dword [ebp - 0x634]
add eax, 0x948
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0x4eb0e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x634]
cmp dword [edx + 0x71460], 0
je 0x409f28
push 0x52fa5c
lea eax, [ebp - 0x420]
push eax
call fcn.004ba79a
add esp, 8
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ba753
add esp, 4
mov dword [ebp - 0x424], eax
mov edx, dword [ebp - 0x424]
mov word [ebp + edx*2 - 0x432], 0
push 0x4eb104
lea eax, [ebp - 0x420]
push eax
call fcn.004ba770
add esp, 8
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x634]
add edx, 0x948
push edx
lea eax, [ebp - 0x208]
push eax
push 0x4eb11c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x40a153
mov ecx, dword [ebp - 0x210]
push ecx
push 0x4eb138
lea edx, [ebp - 0x208]
push edx
call fcn.004ba7bf
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x634]
add ecx, 0x948
push ecx
call fcn.004ba79a
add esp, 8
push 0x52fa5c
mov edx, dword [ebp - 0x634]
add edx, 0x948
push edx
lea eax, [ebp - 0x208]
push eax
push 0x4eb15c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x634]
add ecx, 0x948
push ecx
mov ecx, dword [ebp - 0x634]
add ecx, 0x73990
call fcn.0040d610
mov edx, dword [ebp - 0x210]
push edx
push 0x4eb178
lea eax, [ebp - 0x208]
push eax
call fcn.004ba7bf
add esp, 0xc
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 0x7157c]
push edx
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 0x71578]
push ecx
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 0x71574]
push eax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 0x71570]
push edx
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 0x7156c]
push ecx
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 0x71568]
push eax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 0x71564]
push edx
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 0x71560]
push ecx
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 0x7155c]
push eax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 0x71558]
push edx
push 0x4eb19c
mov eax, dword [ebp - 0x634]
add eax, 0x948
push eax
call fcn.004ba7bf
add esp, 0x30
push 0x52fa5c
mov ecx, dword [ebp - 0x634]
add ecx, 0x948
push ecx
lea edx, [ebp - 0x208]
push edx
push 0x4eb1d8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x634]
cmp dword [eax + 0x71460], 0
je 0x40a101
push 0x52fa5c
lea ecx, [ebp - 0x62c]
push ecx
call fcn.004ba79a
add esp, 8
lea edx, [ebp - 0x62c]
push edx
call fcn.004ba753
add esp, 4
mov dword [ebp - 0x630], eax
mov eax, dword [ebp - 0x630]
mov word [ebp + eax*2 - 0x63e], 0
push str.HDeckEQ.ini
lea ecx, [ebp - 0x62c]
push ecx
call fcn.004ba770
add esp, 8
lea edx, [ebp - 0x62c]
push edx
mov eax, dword [ebp - 0x634]
add eax, 0x948
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0x4eb20c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x210]
add edx, 1
push edx
push 0x4eb228
lea eax, [ebp - 0x208]
push eax
call fcn.004ba7bf
add esp, 0xc
push 0x52fa5c
lea ecx, [ebp - 0x208]
push ecx
push 0x4eb230
push 0x4eb250
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x634]
add ecx, 0x73990
call fcn.004047f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.0040d500
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret