Function at 0x4296e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5877d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e6990]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.0045c778
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x429728
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x1b0]
mov dword [esp + 0x1c], ecx
mov ecx, 0xfffffc2c
sub ecx, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], esi
lea ebx, [eax + 0x3d4]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea edx, [ebx + 0xc]
push edx
lea edi, [ebx - 0xc]
lea esi, [ebx + 0x6c]
push eax
call fcn.0043ff50
test eax, eax
je 0x429889
cmp dword [edi], 0xff
jne 0x42979c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xfc]
add edx, dword [esp + 0x18]
mov dword [edx + ebx], 0xff
jmp 0x4297e0
mov eax, dword [esp + 0x10]
inc eax
push eax
lea ecx, [esp + 0x18]
push str.user_d_id
push ecx
call fcn.00403be0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x85c]
mov edx, dword [esp + 0x20]
add esp, 0xc
push eax
push 0xff
push edx
push str.dlparam
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 0xfc]
add ecx, dword [esp + 0x18]
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x10]
inc eax
add ebx, 4
mov dword [esp + 0x10], eax
cmp eax, 3
jl 0x42975e
mov esi, dword [ebp + 8]
cmp dword [esi + 0x98], 2
jne 0x4298a7
mov ecx, dword [esi + 0xf0]
cmp ecx, 0x20
jne 0x429829
cmp dword [esi + 0x440], 0xf
jne 0x429829
mov eax, ecx
cdq
idiv dword [esi + 0xf4]
dec eax
mov dword [esi + 0x440], eax
mov eax, ecx
cdq
idiv dword [esi + 0xf4]
mov ecx, dword [esi + 0x444]
cmp ecx, eax
ja 0x42984a
mov edx, dword [esi + 0x448]
cmp edx, eax
jbe 0x4298d4
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429872
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x429866
mov eax, dword [esi + 0xf0]
cdq
idiv dword [esi + 0xf4]
cmp dword [esi + 0x440], eax
ja 0x42984a
mov ecx, dword [esi + 0x444]
cmp ecx, eax
ja 0x42984a
mov edx, dword [esi + 0x448]
cmp edx, eax
ja 0x42984a
mov edi, dword [esi + 0x440]
xor ebx, ebx
cmp edi, ebx
jne 0x429930
cmp ecx, ebx
jne 0x4298f0
cmp edx, ebx
jne 0x4298f0
mov dword [esi + 0x440], eax
jmp 0x429940
cmp edi, ebx
jne 0x429930
cmp ecx, ebx
jne 0x429902
sub eax, edx
mov dword [esi + 0x440], eax
jmp 0x429940
cmp edi, ebx
jne 0x429930
cmp ecx, ebx
je 0x42991a
cmp edx, ebx
je 0x42991a
sub eax, edx
sub eax, ecx
mov dword [esi + 0x440], eax
jmp 0x429940
cmp edi, ebx
jne 0x429930
cmp ecx, ebx
je 0x429930
cmp edx, ebx
jne 0x429930
sub eax, ecx
mov dword [esi + 0x440], eax
jmp 0x429940
cmp dword [esi + 0x98], 2
jne 0x429940
inc edi
mov dword [esi + 0x440], edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp ecx, ebx
jne 0x4299ae
cmp edx, ebx
jne 0x4299ae
mov eax, dword [esi + 0x85c]
push eax
push 0x5bacc8
push str.enablepartition1
push str.dlparam
mov dword [esi + 0x3bc], 1
call edi
push 1
lea ecx, [esi + 0x614]
call fcn.004645c5
push 1
lea ecx, [esi + 0x770]
call fcn.004645c5
push 8
lea ecx, [esi + 0x3b4]
push str.08000000
call fcn.00402d70
push 8
lea ecx, [esi + 0x3b8]
push str.08000000
call fcn.00402d70
cmp dword [esi + 0x444], ebx
jne 0x4299d4
mov eax, dword [esi + 0x85c]
push eax
push 0x5b6d18
push str.enablepartition2
push str.dlparam
mov dword [esi + 0x3c0], ebx
call edi
cmp dword [esi + 0x448], ebx
jne 0x4299fa
mov eax, dword [esi + 0x85c]
push eax
push 0x5b6d18
push str.enablepartition3
push str.dlparam
mov dword [esi + 0x3c4], ebx
call edi
call fcn.0045c778
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x429a14
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 1
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0x448]
mov edi, dword [esi + 0x440]
imul ecx, eax
mov ebx, dword [esi + 0xf0]
imul edi, eax
mov eax, dword [esi + 0x3b0]
push ecx
sub ebx, ecx
mov dword [esp + 0x20], esp
sub eax, 0x10
add edi, 0x20000
add ebx, 0x20000
mov dword [esp + 0x20], esp
push eax
shl edi, 0xa
shl ebx, 0xa
call fcn.00402b00
mov edx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [edx], eax
call fcn.00405580
add esp, 4
test edx, edx
jl 0x429c02
jg 0x429a9c
cmp eax, 0x8000000
jb 0x429c02
mov eax, dword [esi + 0x3b0]
push ecx
mov dword [esp + 0x20], esp
sub eax, 0x10
mov dword [esp + 0x20], esp
push eax
call fcn.00402b00
mov ecx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
call fcn.00405580
xor ecx, ecx
add esp, 4
cmp edx, ecx
jg 0x429c02
jl 0x429adc
cmp eax, edi
jae 0x429c02
cmp dword [esi + 0x444], ecx
je 0x429b68
mov eax, dword [esi + 0x3b4]
push ecx
mov dword [esp + 0x20], esp
sub eax, 0x10
mov dword [esp + 0x20], esp
push eax
call fcn.00402b00
mov edx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [edx], eax
call fcn.00405580
xor ecx, ecx
add esp, 4
cmp edx, ecx
jl 0x429c02
jg 0x429b28
cmp eax, edi
jb 0x429c02
mov eax, dword [esi + 0x3b4]
push ecx
mov dword [esp + 0x20], esp
sub eax, 0x10
mov dword [esp + 0x20], esp
push eax
call fcn.00402b00
mov ecx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
call fcn.00405580
xor ecx, ecx
add esp, 4
cmp edx, ecx
jg 0x429c02
jl 0x429b68
cmp eax, ebx
jae 0x429c02
cmp dword [esi + 0x448], 0
je 0x429cb1
mov eax, dword [esi + 0x3b8]
push ecx
mov dword [esp + 0x20], esp
sub eax, 0x10
mov dword [esp + 0x20], esp
push eax
call fcn.00402b00
mov edx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [edx], eax
call fcn.00405580
xor ecx, ecx
add esp, 4
cmp edx, ecx
jl 0x429c02
jg 0x429bad
cmp eax, ebx
jb 0x429c02
mov eax, dword [esi + 0x3b8]
push ecx
mov dword [esp + 0x20], esp
sub eax, 0x10
mov dword [esp + 0x20], esp
push eax
call fcn.00402b00
mov ecx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
call fcn.00405580
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xf0]
add eax, 0x20000
shl eax, 0xa
mov ecx, edx
cdq
add esp, 4
cmp ecx, edx
jl 0x429cb1
jg 0x429c02
cmp dword [esp + 0x1c], eax
jb 0x429cb1
push 0x8000000
lea edx, [esp + 0x14]
push str._08X
push edx
call fcn.00403be0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x3b0]
call fcn.00402920
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x614]
push edx
mov dword [esi + 0x3bc], 0
call fcn.004644b8
push edi
lea eax, [esp + 0x14]
push str._08X
push eax
call fcn.00403be0
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esi + 0x3b4]
push edx
call fcn.00402920
push ebx
lea eax, [esp + 0x14]
push str._08X
xor edi, edi
push eax
mov dword [esi + 0x3c0], edi
call fcn.00403be0
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esi + 0x3b8]
push edx
call fcn.00402920
push 1
lea ecx, [esi + 0x614]
mov dword [esi + 0x3c4], edi
call fcn.004645c5
push 1
lea ecx, [esi + 0x770]
call fcn.004645c5
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429cd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
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 0x429cfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4