Function at 0x406810
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x446214]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str.nothing
push edi
mov dword [esp + 0x344], eax
mov dword [esp + 0x20], esi
call fcn.0041b7e3
add esp, 8
test eax, eax
je 0x406d15
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
push ebx
push edi
call fcn.004056b0
test eax, eax
je 0x406d15
xor eax, eax
xor edx, edx
mov word [esp + 0x130], dx
mov ecx, 0x81
lea edi, [esp + 0x132]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x6a], eax
mov dword [esp + 0xba], ecx
mov dword [esp + 0x6e], eax
mov dword [esp + 0xbe], ecx
mov dword [esp + 0x72], eax
mov dword [esp + 0xc2], ecx
mov dword [esp + 0x76], eax
mov dword [esp + 0xc6], ecx
mov dword [esp + 0x7a], eax
mov dword [esp + 0xca], ecx
mov dword [esp + 0x7e], eax
mov dword [esp + 0xce], ecx
mov dword [esp + 0x82], eax
mov dword [esp + 0xd2], ecx
mov dword [esp + 0x86], eax
mov dword [esp + 0xd6], ecx
mov dword [esp + 0x8a], eax
mov dword [esp + 0xda], ecx
mov word [esp + 0x8e], ax
mov word [esp + 0xde], cx
mov dword [esp + 0x10a], eax
mov dword [esp + 0x42], ecx
mov dword [esp + 0x10e], eax
mov dword [esp + 0x46], ecx
mov dword [esp + 0x112], eax
mov dword [esp + 0x4a], ecx
mov dword [esp + 0x116], eax
mov dword [esp + 0x4e], ecx
mov dword [esp + 0x11a], eax
mov dword [esp + 0x52], ecx
mov dword [esp + 0x11e], eax
mov dword [esp + 0x56], ecx
mov dword [esp + 0x122], eax
mov dword [esp + 0x5a], ecx
mov dword [esp + 0x126], eax
mov dword [esp + 0x5e], ecx
mov dword [esp + 0x12a], eax
mov dword [esp + 0x62], ecx
mov word [esp + 0x12e], ax
mov word [esp + 0x66], cx
mov dword [esp + 0x92], eax
mov dword [esp + 0xe2], ecx
mov dword [esp + 0x96], eax
mov dword [esp + 0xe6], ecx
mov dword [esp + 0x9a], eax
mov dword [esp + 0xea], ecx
mov dword [esp + 0x9e], eax
mov dword [esp + 0xee], ecx
mov dword [esp + 0xa2], eax
mov dword [esp + 0xf2], ecx
push ebx
mov dword [esp + 0xaa], eax
mov dword [esp + 0xfa], ecx
push 0x104
mov word [esp + 0x70], dx
mov word [esp + 0xc0], dx
mov word [esp + 0x110], dx
mov word [esp + 0x48], dx
mov word [esp + 0x98], dx
mov dword [esp + 0xb2], eax
mov word [esp + 0xe8], dx
mov dword [esp + 0x102], ecx
lea edx, [esp + 0x138]
push edx
mov dword [esp + 0xba], eax
mov dword [esp + 0x10a], ecx
mov dword [esp + 0xbe], eax
mov dword [esp + 0x10e], ecx
push 0x438630
mov word [esp + 0xc6], ax
mov word [esp + 0x116], cx
push 0x438c04
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x438618
call esi
push ebx
push 0x14
lea eax, [esp + 0x70]
push eax
push 0x438630
push 0x438b9c
push 0x438618
call esi
push ebx
push 0x14
lea ecx, [esp + 0xc0]
push ecx
push 0x438630
push str.MinVer
push 0x438618
call esi
push ebx
push 0x14
lea edx, [esp + 0x110]
push edx
push 0x438630
push str.IsOrgVer
push 0x438618
call esi
push ebx
push 0x14
lea eax, [esp + 0x48]
push eax
push 0x438630
push str.NewVer
push 0x438618
call esi
push ebx
push 0x14
lea ecx, [esp + 0x98]
push ecx
push 0x438630
push str.NewMinVer
push 0x438618
call esi
push ebx
push 0x14
lea edx, [esp + 0xe8]
push edx
push 0x438630
push 0x438bbc
push str.UpdateSet
call esi
lea eax, [esp + 0x68]
push eax
call fcn.0041ad33
lea ecx, [esp + 0xbc]
push ecx
mov dword [esp + 0x34], eax
call fcn.0041ad33
lea edx, [esp + 0x110]
push edx
mov dword [esp + 0x44], eax
call fcn.0041ad33
mov edi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.0041ad33
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0x3c], eax
call fcn.0041ad33
lea edx, [esp + 0xf4]
push edx
mov dword [esp + 0x3c], eax
call fcn.0041ad33
mov esi, dword [esp + 0x30]
mov dword [esp + 0x54], eax
lea eax, [esi + 0x4f0]
push eax
mov dword [esp + 0x2c], 0
call fcn.0041b815
fstp dword [esp + 0x30]
lea ecx, [esi + 0x554]
push ecx
call fcn.0041b815
fstp dword [esp + 0x38]
lea edx, [esp + 0x88]
push edx
call fcn.0041b815
fstp dword [esp + 0x40]
lea eax, [esp + 0xdc]
push eax
call fcn.0041b815
fstp dword [esp + 0x58]
lea ecx, [esp + 0x68]
push ecx
call fcn.0041b815
fstp dword [esp + 0x4c]
lea edx, [esp + 0xbc]
push edx
call fcn.0041b815
fstp dword [esp + 0x64]
add esp, 0x30
test edi, edi
jle 0x406c6e
lea eax, [esp + 0x108]
push 0x438bb8
push eax
call fcn.0041b7e3
add esp, 8
test eax, eax
jne 0x406c6e
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x406c6e
fld dword [esp + 0x1c]
mov edi, 1
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x406c15
lea ecx, [esp + 0x68]
push ecx
lea edx, [esi + 0x12b0]
push edx
mov dword [esp + 0x18], edi
call fcn.0041ace7
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x406c73
fld dword [esp + 0x14]
fld dword [esp + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x406c55
lea eax, [esp + 0x68]
push eax
lea ecx, [esi + 0x12b0]
push ecx
call fcn.0041ace7
fld dword [esp + 0x38]
fcomp dword [esp + 0x20]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x406c55
mov dword [esp + 0x10], edi
lea edx, [esp + 0xb8]
push edx
lea eax, [esi + 0x1314]
push eax
call fcn.0041ace7
add esp, 8
jmp 0x406c73
mov edi, 1
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x406cf9
fld dword [esp + 0x20]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x406ca2
lea ecx, [esp + 0x40]
push ecx
lea edx, [esi + 0x12b0]
push edx
mov dword [esp + 0x18], edi
call fcn.0041ace7
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x406cf9
fld dword [esp + 0x14]
fld dword [esp + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jp 0x406ce2
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x12b0]
push ecx
call fcn.0041ace7
fld dword [esp + 0x3c]
fcomp dword [esp + 0x20]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x406ce2
mov dword [esp + 0x10], edi
lea edx, [esp + 0x90]
push edx
lea eax, [esi + 0x1314]
push eax
call fcn.0041ace7
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406d15
lea ecx, [esp + 0x130]
push ecx
call fcn.0041ad33
add esp, 4
test eax, eax
jg 0x406d2d
or eax, 0xffffffff
mov ecx, dword [esp + 0x33c]
call fcn.0041a963
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x130]
push edx
lea eax, [esi + 0xfe0]
push eax
call fcn.0041ace7
lea ecx, [esp + 0x48]
push ecx
lea edx, [esi + 0x11e8]
push edx
call fcn.0041ace7
lea eax, [esp + 0xa0]
push eax
lea ecx, [esi + 0x124c]
push ecx
call fcn.0041ace7
lea edi, [esi + 0x7c0]
push ebx
push edi
call fcn.0041ace7
mov eax, dword [esi + 4]
add esp, 0x20
cmp eax, 2
je 0x406dc9
mov eax, dword [esp + 0x3c]
test eax, eax
push 0x438bb8
jle 0x406da5
lea edx, [esp + 0xe4]
push edx
call fcn.0041b7e3
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
jmp 0x406dc9
mov ecx, dword [0x447168]
call fcn.00406680
add eax, 0x820
push eax
call fcn.0041b7e3
add esp, 8
test eax, eax
jne 0x406dc9
mov dword [esi + 4], 1
mov eax, dword [esi + 4]
test eax, eax
jle 0x406dd9
mov eax, dword [esi + 0x14]
mov dword [eax], 1
mov ecx, dword [esi + 0x14]
push edi
call fcn.004051b0
mov ecx, dword [esp + 0x33c]
mov eax, 1
call fcn.0041a963
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8