Function at 0x43e940
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541eca
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xe4]
xor esi, esi
push eax
mov dword [ebp - 0xe8], esi
call fcn.0043e820
push 0x552ce0
push eax
lea ecx, [ebp - 0x90]
push ecx
mov dword [ebp - 4], esi
call fcn.00404e30
add esp, 0x10
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0xd0], ebx
jb 0x43e9bd
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x7c], ebx
jae 0x43e9ce
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43e9fe
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
cmp dword [ebp - 0x7c], ebx
jb 0x43ec91
mov ecx, dword [ebp - 0x90]
push ecx
jmp 0x43ec89
xor eax, eax
push 0x50
lea edx, [ebp - 0x74]
push esi
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00480280
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp dword [ebp - 0x7c], ebx
jae 0x43ea2f
lea eax, [ebp - 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0x552cdc
push str.MajorVersion
push str.Version
call esi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x74]
push 0x28
push edx
call fcn.004835ba
push 0x54b85c
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004835ba
mov eax, dword [ebp - 0x90]
add esp, 0x18
cmp dword [ebp - 0x7c], ebx
jae 0x43ea80
lea eax, [ebp - 0x90]
push eax
push 0xa
lea ecx, [ebp - 0x24]
push ecx
push 0x552cdc
push str.FirstVersion
push str.Version
call esi
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004835ba
push 0x54b85c
lea ecx, [ebp - 0x74]
push 0x28
push ecx
call fcn.004835ba
mov eax, dword [ebp - 0x90]
add esp, 0x18
cmp dword [ebp - 0x7c], ebx
jae 0x43eacb
lea eax, [ebp - 0x90]
push eax
push 0xa
lea edx, [ebp - 0x24]
push edx
push 0x552cdc
push str.SecondVersion
push str.Version
call esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x74]
push 0x28
push ecx
call fcn.004835ba
push 0x54b85c
lea edx, [ebp - 0x74]
push 0x28
push edx
call fcn.004835ba
mov eax, dword [ebp - 0x90]
add esp, 0x18
cmp dword [ebp - 0x7c], ebx
jae 0x43eb16
lea eax, [ebp - 0x90]
push eax
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0x552cdc
push str.Version
push str.Version
call esi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x74]
push 0x28
push edx
call fcn.004835ba
add esp, 0xc
mov ecx, str.X.X.X.X
lea eax, [ebp - 0x74]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43eb6e
test dx, dx
je 0x43eb6a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43eb6e
add eax, 4
add ecx, 4
test dx, dx
jne 0x43eb48
xor eax, eax
jmp 0x43eb73
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
lea esi, [ebx + 7]
cmp eax, ebx
jne 0x43eba0
xor eax, eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], ebx
mov word [ebp - 0xc8], ax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 3
lea ebx, [esi - 5]
jmp 0x43ebed
xor ecx, ecx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov word [ebp - 0xac], cx
lea edx, [eax + 2]
jmp 0x43ebc0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43ebc0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0xac]
call fcn.00401b70
mov ebx, 4
lea eax, [ebp - 0xac]
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
mov dword [ebp - 0xe8], ebx
call fcn.00402560
or ebx, 1
test bl, 4
je 0x43ec46
and ebx, 0xfffffffb
cmp dword [ebp - 0x98], 8
jb 0x43ec2d
mov edx, dword [ebp - 0xac]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
test bl, 2
je 0x43ec7c
cmp dword [ebp - 0xb4], 8
jb 0x43ec63
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], 0
mov word [ebp - 0xc8], dx
cmp dword [ebp - 0x7c], 8
jb 0x43ec91
mov eax, dword [ebp - 0x90]
push eax
call fcn.00480102
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 4