Function at 0x40d8d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x485ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0044da90
add esp, 0xc
push 0
push 0x64
push 1
mov ecx, dword [ebp - 0x214]
call fcn.0040f440
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040f090
push eax
mov ecx, dword [ebp - 0x214]
call fcn.0040d870
movzx edx, al
test edx, edx
je 0x40e29d
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x850]
push ecx
push 1
mov ecx, dword [ebp - 0x214]
call fcn.0040ba40
mov edx, dword [ebp - 0x214]
mov byte [edx + 0x850], 1
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x850]
push ecx
push 0
mov ecx, dword [ebp - 0x214]
call fcn.0040ba40
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x47757c
push 0x477588
push 0x477590
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x218], 0x4775a4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
mov eax, dword [ebp - 0x218]
cmp dx, word [eax]
jne 0x40da33
cmp word [ebp - 0x21e], 0
je 0x40da27
mov ecx, dword [ebp - 0x21c]
mov dx, word [ecx + 2]
mov word [ebp - 0x220], dx
mov eax, dword [ebp - 0x218]
cmp dx, word [eax + 2]
jne 0x40da33
add dword [ebp - 0x21c], 4
add dword [ebp - 0x218], 4
cmp word [ebp - 0x220], 0
jne 0x40d9cd
mov dword [ebp - 0x224], 0
jmp 0x40da3e
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x228], edx
cmp dword [ebp - 0x228], 0
je 0x40da9c
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
call fcn.0040d870
movzx ecx, al
test ecx, ecx
je 0x40da9c
lea edx, [ebp - 0x210]
push edx
push 0x419
mov ecx, dword [ebp - 0x214]
call fcn.00432809
push 1
push 0x402
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0040f910
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x4775b0
push str.BOOT
push 0x4775c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x22c], 0x4775dc
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x230]
mov ax, word [edx]
mov word [ebp - 0x232], ax
mov ecx, dword [ebp - 0x22c]
cmp ax, word [ecx]
jne 0x40db4b
cmp word [ebp - 0x232], 0
je 0x40db3f
mov edx, dword [ebp - 0x230]
mov ax, word [edx + 2]
mov word [ebp - 0x234], ax
mov ecx, dword [ebp - 0x22c]
cmp ax, word [ecx + 2]
jne 0x40db4b
add dword [ebp - 0x230], 4
add dword [ebp - 0x22c], 4
cmp word [ebp - 0x234], 0
jne 0x40dae5
mov dword [ebp - 0x238], 0
jmp 0x40db56
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40dbb4
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
call fcn.0040d870
movzx edx, al
test edx, edx
je 0x40dbb4
lea eax, [ebp - 0x210]
push eax
push 0x41d
mov ecx, dword [ebp - 0x214]
call fcn.00432809
push 1
push 0x412
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0040f910
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0x4775e8
push 0x4775f4
push 0x4775fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x240], 0x477610
lea edx, [ebp - 0x210]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
mov cx, word [eax]
mov word [ebp - 0x246], cx
mov edx, dword [ebp - 0x240]
cmp cx, word [edx]
jne 0x40dc63
cmp word [ebp - 0x246], 0
je 0x40dc57
mov eax, dword [ebp - 0x244]
mov cx, word [eax + 2]
mov word [ebp - 0x248], cx
mov edx, dword [ebp - 0x240]
cmp cx, word [edx + 2]
jne 0x40dc63
add dword [ebp - 0x244], 4
add dword [ebp - 0x240], 4
cmp word [ebp - 0x248], 0
jne 0x40dbfd
mov dword [ebp - 0x24c], 0
jmp 0x40dc6e
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], ecx
cmp dword [ebp - 0x250], 0
je 0x40dccc
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
call fcn.0040d870
movzx eax, al
test eax, eax
je 0x40dccc
lea ecx, [ebp - 0x210]
push ecx
push 0x41a
mov ecx, dword [ebp - 0x214]
call fcn.00432809
push 1
push 0x40f
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0040f910
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x47761c
push 0x477628
push 0x477634
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x254], 0x477648
lea eax, [ebp - 0x210]
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dx, word [ecx]
mov word [ebp - 0x25a], dx
mov eax, dword [ebp - 0x254]
cmp dx, word [eax]
jne 0x40dd7b
cmp word [ebp - 0x25a], 0
je 0x40dd6f
mov ecx, dword [ebp - 0x258]
mov dx, word [ecx + 2]
mov word [ebp - 0x25c], dx
mov eax, dword [ebp - 0x254]
cmp dx, word [eax + 2]
jne 0x40dd7b
add dword [ebp - 0x258], 4
add dword [ebp - 0x254], 4
cmp word [ebp - 0x25c], 0
jne 0x40dd15
mov dword [ebp - 0x260], 0
jmp 0x40dd86
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
cmp dword [ebp - 0x264], 0
je 0x40dde4
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
call fcn.0040d870
movzx ecx, al
test ecx, ecx
je 0x40dde4
lea edx, [ebp - 0x210]
push edx
push 0x41b
mov ecx, dword [ebp - 0x214]
call fcn.00432809
push 1
push 0x410
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0040f910
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x477654
push 0x477660
push 0x477668
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x268], 0x47767c
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
mov ax, word [edx]
mov word [ebp - 0x26e], ax
mov ecx, dword [ebp - 0x268]
cmp ax, word [ecx]
jne 0x40de93
cmp word [ebp - 0x26e], 0
je 0x40de87
mov edx, dword [ebp - 0x26c]
mov ax, word [edx + 2]
mov word [ebp - 0x270], ax
mov ecx, dword [ebp - 0x268]
cmp ax, word [ecx + 2]
jne 0x40de93
add dword [ebp - 0x26c], 4
add dword [ebp - 0x268], 4
cmp word [ebp - 0x270], 0
jne 0x40de2d
mov dword [ebp - 0x274], 0
jmp 0x40de9e
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x274], edx
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x40defc
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
call fcn.0040d870
movzx edx, al
test edx, edx
je 0x40defc
lea eax, [ebp - 0x210]
push eax
push 0x41c
mov ecx, dword [ebp - 0x214]
call fcn.00432809
push 1
push 0x411
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0040f910
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0x477688
push 0x477694
push str.Directory
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x27c], str.null
lea edx, [ebp - 0x210]
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x280]
mov cx, word [eax]
mov word [ebp - 0x282], cx
mov edx, dword [ebp - 0x27c]
cmp cx, word [edx]
jne 0x40dfab
cmp word [ebp - 0x282], 0
je 0x40df9f
mov eax, dword [ebp - 0x280]
mov cx, word [eax + 2]
mov word [ebp - 0x284], cx
mov edx, dword [ebp - 0x27c]
cmp cx, word [edx + 2]
jne 0x40dfab
add dword [ebp - 0x280], 4
add dword [ebp - 0x27c], 4
cmp word [ebp - 0x284], 0
jne 0x40df45
mov dword [ebp - 0x288], 0
jmp 0x40dfb6
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], ecx
cmp dword [ebp - 0x28c], 0
je 0x40e014
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
call fcn.0040d870
movzx eax, al
test eax, eax
je 0x40e014
lea ecx, [ebp - 0x210]
push ecx
push 0x422
mov ecx, dword [ebp - 0x214]
call fcn.00432809
push 1
push 0x41f
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0040f910
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x4776bc
push 0x4776c0
push 0x4776dc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
call fcn.0044ba5a
add esp, 4
test eax, eax
jne 0x40e09e
push 0
push 0x420
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0043296c
push 0
push 0x459
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0043296c
mov ecx, dword [ebp - 0x214]
mov dword [ecx + 0x5f4], 0
jmp 0x40e0f9
push 1
push 0x420
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0043296c
push 1
push 0x459
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0043296c
push 1
push 0x420
mov ecx, dword [ebp - 0x214]
call fcn.0043278c
mov ecx, eax
call fcn.0040f910
mov edx, dword [ebp - 0x214]
mov dword [edx + 0x5f4], 1
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push str.SAMSUNG
push str.OEMName
push 0x47770c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x5e8
call fcn.00405560
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x47771c
push str.XMLPath
push 0x477744
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x5ec
call fcn.00405560
mov ecx, dword [ebp - 0x214]
add ecx, 0x84c
call fcn.0040fda0
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0x477754
push 0x477758
push 0x477778
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x290], 0x477788
lea edx, [ebp - 0x210]
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x294]
mov cx, word [eax]
mov word [ebp - 0x296], cx
mov edx, dword [ebp - 0x290]
cmp cx, word [edx]
jne 0x40e23e
cmp word [ebp - 0x296], 0
je 0x40e232
mov eax, dword [ebp - 0x294]
mov cx, word [eax + 2]
mov word [ebp - 0x298], cx
mov edx, dword [ebp - 0x290]
cmp cx, word [edx + 2]
jne 0x40e23e
add dword [ebp - 0x294], 4
add dword [ebp - 0x290], 4
cmp word [ebp - 0x298], 0
jne 0x40e1d8
mov dword [ebp - 0x29c], 0
jmp 0x40e249
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], ecx
cmp dword [ebp - 0x2a0], 0
je 0x40e270
mov edx, dword [ebp - 0x214]
mov dword [edx + 0x5f0], 1
jmp 0x40e280
mov eax, dword [ebp - 0x214]
mov dword [eax + 0x5f0], 0
mov ecx, dword [ebp - 0x214]
movzx edx, byte [ecx + 0x850]
push edx
push 0
mov ecx, dword [ebp - 0x214]
call fcn.0040ba40
jmp 0x40e2e6
mov eax, dword [ebp - 0x214]
mov byte [eax + 0x850], 0
push 0x47778c
mov ecx, dword [ebp - 0x214]
add ecx, 0x5e8
call fcn.00405560
push str.C:WRTHIST
mov ecx, dword [ebp - 0x214]
add ecx, 0x5ec
call fcn.00405560
mov ecx, dword [ebp - 0x214]
mov dword [ecx + 0x5f0], 1
push 1
mov ecx, dword [ebp - 0x214]
call fcn.0042f105
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ab88
mov esp, ebp
pop ebp
ret