Function at 0x487dcf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb40
push edi
mov dword [ebp - 0xb30], 1
mov dword [ebp - 0x928], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xb2c], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xb2b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x308], 0
mov dword [ebp - 0xb38], 0
mov dword [ebp - 0x314], 0
mov byte [ebp - 0xb34], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc10], 0xa2
push str.DRAM_TEST
mov ecx, dword [ebp + 8]
add ecx, 0x81b
push ecx
call fcn.004e998d
add esp, 8
cmp dword [0x56e1dc], 0
jle 0x487ec6
mov edx, dword [ebp + 8]
cmp dword [edx + 0xef4], 0
je 0x487ec6
mov eax, dword [0x56e1dc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x773]
push edx
push 6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xef4]
call fcn.00408d3c
mov ecx, dword [ebp + 8]
add ecx, 0x81b
push ecx
mov edx, dword [0x56e1dc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x773]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xef4]
call fcn.00505c1d
push 0x200
lea eax, [ebp - 0xb2c]
push eax
call fcn.004b8167
add esp, 8
mov ecx, dword [ebp + 8]
add ecx, 0xeb2
push ecx
push 0x5615e0
lea edx, [ebp - 0x104]
push edx
call fcn.004e998d
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xb2c]
push ecx
call fcn.004e96f0
add esp, 8
lea edx, [ebp - 0xb2c]
push edx
push 0
push 0x5615f0
push 0x5615fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0xb2c]
push eax
push 0
push 0x561604
push 0x561610
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x92c], eax
lea ecx, [ebp - 0xb2c]
push ecx
push 0
push 0x561618
push 0x561624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x920], eax
lea edx, [ebp - 0xb2c]
push edx
push 0
push 0x56162c
push 0x561638
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0xb2c]
push eax
push 0
push 0x561640
push 0x561650
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0xb40], eax
lea ecx, [ebp - 0xb2c]
push ecx
push 0
push 0x561658
push 0x561664
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x51c], eax
push 0x400
push 0
lea edx, [ebp - 0x91c]
push edx
call fcn.004e9480
add esp, 0xc
push 1
lea eax, [ebp - 0x91c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00486386
add esp, 0xc
test eax, eax
jne 0x48800b
mov edx, dword [ebp + 8]
mov dword [edx + 0xc18], 1
xor eax, eax
jmp 0x48874c
mov eax, dword [ebp - 0x918]
and eax, 0xff
test eax, eax
je 0x48802b
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xeb0], 1
xor eax, eax
jmp 0x48874c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x55c194]
shl edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xffff
jle 0x488051
mov dword [ebp - 4], 0xffff
cmp dword [0x6744a4], 1
je 0x488063
cmp dword [0x674488], 0
je 0x48809e
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x232]
push edx
call fcn.004b4a85
add esp, 0xc
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x48809e
mov eax, dword [ebp + 8]
mov dword [eax + 0xc18], 2
xor eax, eax
jmp 0x48874c
mov dword [ebp - 0xb3c], 0
mov dword [ebp - 0x518], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x737]
sub eax, 0x20
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov dword [ebp - 0x308], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x737]
sub eax, 0x20
and eax, 0x800001ff
jns 0x4880ea
dec eax
or eax, 0xfffffe00
inc eax
test eax, eax
je 0x4880fd
mov ecx, dword [ebp - 0x308]
add ecx, 1
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x737]
sub eax, 0x20
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [ebp - 0xb38], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x737]
sub ecx, 0x20
and ecx, 0x8000ffff
jns 0x488137
dec ecx
or ecx, 0xffff0000
inc ecx
test ecx, ecx
je 0x488176
mov dword [ebp - 0x928], 1
mov edx, dword [ebp - 0xb38]
add edx, 1
mov dword [ebp - 0xb38], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x737]
sub ecx, 0x20
and ecx, 0x8000ffff
jns 0x488170
dec ecx
or ecx, 0xffff0000
inc ecx
mov dword [ebp - 0x314], ecx
push 0x200
push 0
lea edx, [ebp - 0x514]
push edx
call fcn.004e9480
add esp, 0xc
push 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x242]
push ecx
lea edx, [ebp - 0x514]
push edx
call fcn.004e9b20
add esp, 0xc
mov eax, dword [ebp - 0x50b]
and eax, 0xff
shl eax, 0x18
mov ecx, dword [ebp - 0x50c]
and ecx, 0xff
shl ecx, 0x10
add eax, ecx
mov edx, dword [ebp - 0x50d]
and edx, 0xff
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0x50e]
and ecx, 0xff
add eax, ecx
mov dword [ebp - 0xb3c], eax
mov edx, dword [ebp - 0x50b]
and edx, 0xff
shl edx, 0x18
mov eax, dword [ebp - 0x50c]
and eax, 0xff
shl eax, 0x10
add edx, eax
mov ecx, dword [ebp - 0x50d]
and ecx, 0xff
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x50e]
and eax, 0xff
add edx, eax
mov dword [ebp - 0x518], edx
cmp dword [ebp - 0x310], 0
je 0x488248
mov cl, byte [ebp - 0x509]
or cl, 0x10
mov byte [ebp - 0x509], cl
jmp 0x488257
mov dl, byte [ebp - 0x509]
and dl, 0xef
mov byte [ebp - 0x509], dl
cmp dword [ebp - 0x51c], 0
je 0x488270
mov al, byte [ebp - 0x509]
or al, 0x20
mov byte [ebp - 0x509], al
jmp 0x48827f
mov cl, byte [ebp - 0x509]
and cl, 0xdf
mov byte [ebp - 0x509], cl
cmp dword [ebp - 0x920], 5
je 0x488291
cmp dword [ebp - 0x920], 6
jne 0x48829b
mov dword [ebp - 0x920], 0
mov dl, byte [ebp - 0x92c]
mov byte [ebp - 0x502], dl
mov eax, dword [ebp - 0x920]
shl eax, 1
mov cl, byte [ebp - 0x502]
or cl, al
mov byte [ebp - 0x502], cl
mov edx, dword [ebp - 0x30c]
and edx, 0xf
shl edx, 4
mov al, byte [ebp - 0x502]
or al, dl
mov byte [ebp - 0x502], al
mov cl, byte [ebp - 0xb40]
mov byte [ebp - 0x4f9], cl
mov dword [0x673e6c], 1
cmp dword [ebp - 0xb38], 1
jle 0x4884fd
mov dword [ebp - 0x924], 0
jmp 0x488315
mov edx, dword [ebp - 0x924]
add edx, 1
mov dword [ebp - 0x924], edx
mov eax, dword [ebp - 0x924]
cmp eax, dword [ebp - 0xb38]
jge 0x4884fb
mov ecx, dword [ebp - 0xb38]
sub ecx, 1
cmp dword [ebp - 0x924], ecx
jne 0x488435
mov edx, dword [ebp - 0x518]
and edx, 0xff
mov byte [ebp - 0x50e], dl
mov eax, dword [ebp - 0x518]
sar eax, 8
and eax, 0xff
mov byte [ebp - 0x50d], al
mov ecx, dword [ebp - 0x518]
sar ecx, 0x10
and ecx, 0xff
mov byte [ebp - 0x50c], cl
mov edx, dword [ebp - 0x518]
sar edx, 0x18
and edx, 0xff
mov byte [ebp - 0x50b], dl
cmp dword [ebp - 0x928], 0
je 0x4883d1
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x242]
mov eax, dword [ebp - 0x924]
shl eax, 6
shl eax, 0xa
lea ecx, [edx + eax + 0x20]
push ecx
lea edx, [ebp - 0x514]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00483d18
add esp, 0x10
mov dword [ebp - 0xb30], eax
jmp 0x488409
push 0x10000
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x242]
mov eax, dword [ebp - 0x924]
shl eax, 6
shl eax, 0xa
lea ecx, [edx + eax + 0x20]
push ecx
lea edx, [ebp - 0x514]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00483d18
add esp, 0x10
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x488430
mov dword [0x673e6c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc18], 7
xor eax, eax
jmp 0x48874c
jmp 0x4884e4
mov edx, dword [ebp - 0x518]
and edx, 0xff
mov byte [ebp - 0x50e], dl
mov eax, dword [ebp - 0x518]
sar eax, 8
and eax, 0xff
mov byte [ebp - 0x50d], al
mov ecx, dword [ebp - 0x518]
sar ecx, 0x10
and ecx, 0xff
mov byte [ebp - 0x50c], cl
mov edx, dword [ebp - 0x518]
sar edx, 0x18
and edx, 0xff
mov byte [ebp - 0x50b], dl
push 0x10000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x242]
mov edx, dword [ebp - 0x924]
shl edx, 6
shl edx, 0xa
lea eax, [ecx + edx + 0x20]
push eax
lea ecx, [ebp - 0x514]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00483d18
add esp, 0x10
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x4884e4
mov dword [0x673e6c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc18], 8
xor eax, eax
jmp 0x48874c
mov ecx, dword [ebp - 0x518]
add ecx, 0x10000
mov dword [ebp - 0x518], ecx
jmp 0x488306
jmp 0x48852d
mov edx, dword [ebp - 0x308]
shl edx, 9
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x242]
add ecx, 0x20
push ecx
lea edx, [ebp - 0x514]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00483d18
add esp, 0x10
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x488554
mov dword [0x673e6c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc18], 9
xor eax, eax
jmp 0x48874c
mov byte [ebp - 0x513], 0x28
mov edx, dword [ebp - 0xb3c]
and edx, 0xff
mov byte [ebp - 0x50e], dl
mov eax, dword [ebp - 0xb3c]
sar eax, 8
and eax, 0xff
mov byte [ebp - 0x50d], al
mov ecx, dword [ebp - 0xb3c]
sar ecx, 0x10
and ecx, 0xff
mov byte [ebp - 0x50c], cl
mov edx, dword [ebp - 0xb3c]
sar edx, 0x18
and edx, 0xff
mov byte [ebp - 0x50b], dl
push 0x200
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x514]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00483d18
add esp, 0x10
mov dword [ebp - 0xb30], eax
mov dword [0x673e6c], 0
cmp dword [ebp - 0xb30], 0
jne 0x4885f7
mov eax, dword [ebp + 8]
mov dword [eax + 0xc18], 5
xor eax, eax
jmp 0x48874c
cmp dword [0x6744a4], 1
je 0x488609
cmp dword [0x674488], 0
je 0x48861f
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x232]
push edx
call fcn.004b4a85
add esp, 0xc
push str.Check_DRAM_TEST_Result
mov eax, dword [ebp + 8]
add eax, 0x81b
push eax
call fcn.004e998d
add esp, 8
cmp dword [0x56e1dc], 0
jle 0x488693
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xef4], 0
je 0x488693
mov edx, dword [0x56e1dc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x773]
push ecx
push 6
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xef4]
call fcn.00408d3c
mov eax, dword [ebp + 8]
add eax, 0x81b
push eax
mov ecx, dword [0x56e1dc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x773]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xef4]
call fcn.00505c1d
push 0x400
push 0
lea edx, [ebp - 0x91c]
push edx
call fcn.004e9480
add esp, 0xc
push 1
lea eax, [ebp - 0x91c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00486386
add esp, 0xc
test eax, eax
jne 0x4886d3
mov edx, dword [ebp + 8]
mov dword [edx + 0xc18], 3
xor eax, eax
jmp 0x48874c
mov al, byte [ebp - 0x91b]
mov byte [ebp - 0xb34], al
mov ecx, dword [ebp - 0xb34]
and ecx, 0xff
cmp ecx, 1
jne 0x4886fc
mov edx, dword [ebp + 8]
mov byte [edx + 0xeb1], 1
jmp 0x488722
mov eax, dword [ebp - 0xb34]
and eax, 0xff
cmp eax, 2
jne 0x488718
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xeb1], 2
jmp 0x488722
mov edx, dword [ebp + 8]
mov byte [edx + 0xeb1], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xeb1]
test ecx, ecx
je 0x488747
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0xeb1]
mov byte [edx + 0xc20], cl
xor eax, eax
jmp 0x48874c
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret