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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3013
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x513480]
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]
mov dword [ebp - 0xd8], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x51c9dc]
mov dword [ebp - 0xdc], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x51b38c]
cmp eax, dword [ecx + 4]
jg 0x44c27c
cmp dword [0x512504], 0
jne 0x44bede
lea eax, [ebp - 0xbc]
push eax
call fcn.0044c720
add esp, 4
push 0xffffffffffffffff
push 0x4e47bc
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0
call fcn.00417480
mov ecx, eax
cmp ecx, 0xffffffff
je 0x44becc
mov eax, dword [ebp - 0xac]
inc eax
cmp ecx, eax
jae 0x44becc
push ecx
push 0
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040c6c0
mov esi, eax
cmp esi, 0x5124f4
je 0x44bec1
mov edx, dword [0x512508]
cmp edx, 8
jb 0x44be63
mov ecx, dword [0x5124f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44be59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c2ce
push edx
push ecx
call fcn.00491e05
add esp, 8
mov dword [0x512504], 0
xor eax, eax
mov word [0x5124f4], ax
mov dword [0x512508], 7
mov eax, dword [esi]
mov dword [0x5124f4], eax
mov eax, dword [esi + 4]
mov dword [0x5124f8], eax
mov eax, dword [esi + 8]
mov dword [0x5124fc], eax
mov eax, dword [esi + 0xc]
mov dword [0x512500], eax
mov eax, dword [esi + 0x10]
mov dword [0x512504], eax
mov eax, dword [esi + 0x14]
mov dword [0x512508], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xd4]
call fcn.00402480
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.00402480
push 0x5124f4
lea ecx, [ebp - 0xa4]
call fcn.004029f0
mov dword [ebp - 0xd8], 8
push str.cfgs_setup.cfg
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00401ec0
add esp, 0xc
mov edx, dword [ebp - 0x90]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x44bf5e
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44bf54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c2d3
push edx
push ecx
call fcn.00491e05
add esp, 8
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44bf93
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x44c251
xor eax, eax
push 0x50
push eax
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
lea eax, [ebp - 0x74]
push eax
call fcn.00494800
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x8c]
add esp, 0xc
cmp dword [ebp - 0x78], 8
cmovae eax, dword [ebp - 0x8c]
push eax
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0x4e47e4
push 0x4e47e8
push str.Version
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004a4988
push 0x4db814
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004a4988
add esp, 0x18
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
cmovae eax, dword [ebp - 0x8c]
push eax
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0x4e47e4
push str.FirstVersion
push str.Version
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004a4988
push 0x4db814
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004a4988
add esp, 0x18
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
cmovae eax, dword [ebp - 0x8c]
push eax
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0x4e47e4
push str.SecondVersion
push str.Version
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004a4988
push 0x4db814
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004a4988
add esp, 0x18
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
cmovae eax, dword [ebp - 0x8c]
push eax
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0x4e47e4
push str.Version
push str.Version
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x74]
push 0x28
push eax
call fcn.004a4988
add esp, 0xc
lea eax, [ebp - 0x74]
mov ecx, str.X.X.X.X
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44c106
test dx, dx
je 0x44c102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44c106
add eax, 4
add ecx, 4
test dx, dx
jne 0x44c0e0
xor eax, eax
jmp 0x44c10b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44c131
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
lea ecx, [ebp - 0xbc]
lea ebx, [eax + 0xa]
jmp 0x44c17e
xor eax, eax
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44c154
sub ecx, edx
lea eax, [ebp - 0x74]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407d60
lea ecx, [ebp - 0xa4]
mov ebx, 0xc
mov eax, dword [ecx]
or ebx, 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
test bl, 4
je 0x44c20c
mov edx, dword [ebp - 0x90]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x44c20c
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c202
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c2d8
push edx
push ecx
call fcn.00491e05
add esp, 8
test bl, 2
je 0x44c251
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x44c251
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c247
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c2d8
push edx
push ecx
call fcn.00491e05
add esp, 8
lea ecx, [ebp - 0x8c]
call fcn.00402480
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.00491e13
mov esp, ebp
pop ebp
ret 4
push 0x51b38c
call fcn.0049209f
add esp, 4
cmp dword [0x51b38c], 0xffffffff
jne 0x44bdb1
xor eax, eax
mov dword [0x512504], 0
push 0x4d97b0
mov dword [0x512508], 7
mov word [0x5124f4], ax
call fcn.004923b1
push 0x51b38c
call fcn.00492055
add esp, 8
jmp 0x44bdb1
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
int3