Function at 0x486d8f
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.004e894d
add esp, 8
cmp dword [0x56cd4c], 0
jle 0x486e86
mov edx, dword [ebp + 8]
cmp dword [edx + 0xef4], 0
je 0x486e86
mov eax, dword [0x56cd4c]
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.0040848c
mov ecx, dword [ebp + 8]
add ecx, 0x81b
push ecx
mov edx, dword [0x56cd4c]
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.00504bdd
push 0x200
lea eax, [ebp - 0xb2c]
push eax
call fcn.004b7127
add esp, 8
mov ecx, dword [ebp + 8]
add ecx, 0xeb2
push ecx
push 0x560150
lea edx, [ebp - 0x104]
push edx
call fcn.004e894d
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xb2c]
push ecx
call fcn.004e86b0
add esp, 8
lea edx, [ebp - 0xb2c]
push edx
push 0
push 0x560160
push 0x56016c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0xb2c]
push eax
push 0
push 0x560174
push 0x560180
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x92c], eax
lea ecx, [ebp - 0xb2c]
push ecx
push 0
push 0x560188
push 0x560194
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x920], eax
lea edx, [ebp - 0xb2c]
push edx
push 0
push 0x56019c
push 0x5601a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0xb2c]
push eax
push 0
push 0x5601b0
push 0x5601c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0xb40], eax
lea ecx, [ebp - 0xb2c]
push ecx
push 0
push 0x5601c8
push 0x5601d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x51c], eax
push 0x400
push 0
lea edx, [ebp - 0x91c]
push edx
call fcn.004e8440
add esp, 0xc
push 1
lea eax, [ebp - 0x91c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00485346
add esp, 0xc
test eax, eax
jne 0x486fcb
mov edx, dword [ebp + 8]
mov dword [edx + 0xc18], 1
xor eax, eax
jmp 0x48770c
mov eax, dword [ebp - 0x918]
and eax, 0xff
test eax, eax
je 0x486feb
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xeb0], 1
xor eax, eax
jmp 0x48770c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x55ad6c]
shl edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xffff
jle 0x487011
mov dword [ebp - 4], 0xffff
cmp dword [0x673014], 1
je 0x487023
cmp dword [0x672ff8], 0
je 0x48705e
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x232]
push edx
call fcn.004b3a45
add esp, 0xc
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x48705e
mov eax, dword [ebp + 8]
mov dword [eax + 0xc18], 2
xor eax, eax
jmp 0x48770c
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 0x4870aa
dec eax
or eax, 0xfffffe00
inc eax
test eax, eax
je 0x4870bd
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 0x4870f7
dec ecx
or ecx, 0xffff0000
inc ecx
test ecx, ecx
je 0x487136
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 0x487130
dec ecx
or ecx, 0xffff0000
inc ecx
mov dword [ebp - 0x314], ecx
push 0x200
push 0
lea edx, [ebp - 0x514]
push edx
call fcn.004e8440
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.004e8ae0
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 0x487208
mov cl, byte [ebp - 0x509]
or cl, 0x10
mov byte [ebp - 0x509], cl
jmp 0x487217
mov dl, byte [ebp - 0x509]
and dl, 0xef
mov byte [ebp - 0x509], dl
cmp dword [ebp - 0x51c], 0
je 0x487230
mov al, byte [ebp - 0x509]
or al, 0x20
mov byte [ebp - 0x509], al
jmp 0x48723f
mov cl, byte [ebp - 0x509]
and cl, 0xdf
mov byte [ebp - 0x509], cl
cmp dword [ebp - 0x920], 5
je 0x487251
cmp dword [ebp - 0x920], 6
jne 0x48725b
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 [0x6729dc], 1
cmp dword [ebp - 0xb38], 1
jle 0x4874bd
mov dword [ebp - 0x924], 0
jmp 0x4872d5
mov edx, dword [ebp - 0x924]
add edx, 1
mov dword [ebp - 0x924], edx
mov eax, dword [ebp - 0x924]
cmp eax, dword [ebp - 0xb38]
jge 0x4874bb
mov ecx, dword [ebp - 0xb38]
sub ecx, 1
cmp dword [ebp - 0x924], ecx
jne 0x4873f5
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 0x487391
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.00482cd8
add esp, 0x10
mov dword [ebp - 0xb30], eax
jmp 0x4873c9
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.00482cd8
add esp, 0x10
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x4873f0
mov dword [0x6729dc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc18], 7
xor eax, eax
jmp 0x48770c
jmp 0x4874a4
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.00482cd8
add esp, 0x10
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x4874a4
mov dword [0x6729dc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc18], 8
xor eax, eax
jmp 0x48770c
mov ecx, dword [ebp - 0x518]
add ecx, 0x10000
mov dword [ebp - 0x518], ecx
jmp 0x4872c6
jmp 0x4874ed
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.00482cd8
add esp, 0x10
mov dword [ebp - 0xb30], eax
cmp dword [ebp - 0xb30], 0
jne 0x487514
mov dword [0x6729dc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc18], 9
xor eax, eax
jmp 0x48770c
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.00482cd8
add esp, 0x10
mov dword [ebp - 0xb30], eax
mov dword [0x6729dc], 0
cmp dword [ebp - 0xb30], 0
jne 0x4875b7
mov eax, dword [ebp + 8]
mov dword [eax + 0xc18], 5
xor eax, eax
jmp 0x48770c
cmp dword [0x673014], 1
je 0x4875c9
cmp dword [0x672ff8], 0
je 0x4875df
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x232]
push edx
call fcn.004b3a45
add esp, 0xc
push str.Check_DRAM_TEST_Result
mov eax, dword [ebp + 8]
add eax, 0x81b
push eax
call fcn.004e894d
add esp, 8
cmp dword [0x56cd4c], 0
jle 0x487653
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xef4], 0
je 0x487653
mov edx, dword [0x56cd4c]
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.0040848c
mov eax, dword [ebp + 8]
add eax, 0x81b
push eax
mov ecx, dword [0x56cd4c]
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.00504bdd
push 0x400
push 0
lea edx, [ebp - 0x91c]
push edx
call fcn.004e8440
add esp, 0xc
push 1
lea eax, [ebp - 0x91c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00485346
add esp, 0xc
test eax, eax
jne 0x487693
mov edx, dword [ebp + 8]
mov dword [edx + 0xc18], 3
xor eax, eax
jmp 0x48770c
mov al, byte [ebp - 0x91b]
mov byte [ebp - 0xb34], al
mov ecx, dword [ebp - 0xb34]
and ecx, 0xff
cmp ecx, 1
jne 0x4876bc
mov edx, dword [ebp + 8]
mov byte [edx + 0xeb1], 1
jmp 0x4876e2
mov eax, dword [ebp - 0xb34]
and eax, 0xff
cmp eax, 2
jne 0x4876d8
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xeb1], 2
jmp 0x4876e2
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 0x487707
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0xeb1]
mov byte [edx + 0xc20], cl
xor eax, eax
jmp 0x48770c
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret