Function at 0x10027040
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100569b8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10a4
call fcn.1004d160
mov eax, dword [0x1006c740]
xor eax, esp
mov dword [esp + 0x10a0], eax
push ebx
push esi
push edi
mov eax, dword [0x1006c740]
xor eax, esp
push eax
lea eax, [esp + 0x10b8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
cmp word [esi], ax
jne 0x100270b1
xor ecx, ecx
jmp 0x100270c5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100270b6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x9c]
call fcn.1000fa50
mov dword [esp + 0x10c0], 0
cmp dword [esp + 0xa4], 0
ja 0x100270ef
xor bl, bl
jmp 0x10027696
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.10004760
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10027119
push 0x80004005
call fcn.10004510
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x10c0], 1
movzx eax, word [esp + 0x90]
push eax
movzx eax, word [esp + 0x92]
push eax
movzx eax, word [esp + 0x94]
push eax
movzx eax, word [esp + 0x96]
push eax
movzx eax, word [esp + 0x96]
push eax
movzx eax, word [esp + 0x98]
push eax
lea eax, [esp + 0x2c]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.100031a0
xor eax, eax
mov dword [esp + 0x70], 7
add esp, 0x20
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov byte [esp + 0x10c0], 2
cmp word [esi], ax
jne 0x1002719d
xor ecx, ecx
jmp 0x100271b1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100271a2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x44]
call fcn.1001d9e0
push 1
push 0x10063240
lea ecx, [esp + 0x44]
call fcn.1001d9e0
mov edi, dword [esp + 0x14]
mov ebx, 1
mov ecx, ebx
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, ecx
jge 0x100271f0
push 0
lea ecx, [esp + 0x18]
call fcn.100042c0
mov edi, dword [esp + 0x14]
cmp word [edi], 0
jne 0x100271fa
xor ecx, ecx
jmp 0x1002720f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027200
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x44]
call fcn.1001d9e0
push 1
push 0x10063244
lea ecx, [esp + 0x44]
call fcn.1001d9e0
xor eax, eax
push 0xffe
push eax
mov word [esp + 0xb4], ax
lea eax, [esp + 0xb6]
push eax
call fcn.10037cb0
add esp, 8
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
call fcn.10026430
mov byte [esp + 0x10c0], 3
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002729e
mov esi, dword [esp + 0x10]
push eax
push 0x80
push 2
call fcn.100263e0
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1002729e
push eax
call dword [0x10059100]
mov eax, dword [esp + 0x10]
mov edx, ebx
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x100272bd
push 0
lea ecx, [esp + 0x14]
call fcn.100042c0
mov eax, dword [esp + 0x10]
push eax
push 0x7ff
lea eax, [esp + 0xb4]
push eax
push 0x10060bb8
push str.login
push 0x10063268
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
cmp word [esp + 0xac], ax
jne 0x10027308
xor ecx, ecx
jmp 0x10027321
lea ecx, [esp + 0xac]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027312
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x74]
call fcn.1000fa50
mov byte [esp + 0x10c0], 4
mov eax, dword [esp + 0x7c]
dec eax
cmp eax, 0x7cf
ja 0x100275b7
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push ecx
lea edx, [esp + 0x70]
movq qword [esp + 0x1c], xmm0
lea ecx, [esp + 0x1c]
call fcn.100262a0
add esp, 4
mov byte [esp + 0x10c0], 5
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x1c]
je 0x10027461
xor eax, eax
mov dword [esp + 0x38], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.1000f6e0
lea ecx, [esp + 0x94]
call fcn.1000fbd0
mov edx, eax
cmp word [edx], 0
jne 0x100273bf
xor ecx, ecx
jmp 0x100273d3
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100273c4
sub ecx, ebx
sar ecx, 1
push ecx
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.10027950
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
mov edx, dword [esp + 0x24]
cmp ebx, 8
cmovae ecx, edx
test eax, eax
jne 0x10027409
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0x34], eax
jbe 0x10027409
cmp word [ecx + eax*2], 0x28
je 0x10027426
add esi, 0x18
cmp ebx, 8
jb 0x1002741a
push edx
call fcn.100359a3
add esp, 4
cmp esi, dword [esp + 0x1c]
jne 0x10027383
jmp 0x1002745c
push dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea ecx, [esi + 0x18]
push esi
call fcn.10027e20
mov edx, dword [esp + 0x24]
add esp, 8
push dword [esp + 0x14]
lea ecx, [edx - 0x18]
push ecx
call fcn.10027ec0
sub dword [esp + 0x24], 0x18
lea ecx, [esp + 0x2c]
add esp, 8
call fcn.1000fbe0
mov ebx, 1
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.100277f0
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0x10c0], 6
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x1c]
je 0x10027512
jmp 0x100274a0
xor eax, eax
mov dword [esp + 0x38], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.1000f6e0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
mov byte [esp + 0x10c8], 7
push eax
lea ecx, [esp + 0x60]
call fcn.1001e3c0
push 1
push 0x10063270
lea ecx, [esp + 0x5c]
call fcn.1001d9e0
add esi, 0x18
mov byte [esp + 0x10c0], 6
cmp dword [esp + 0x38], 8
jb 0x1002750c
push dword [esp + 0x24]
call fcn.100359a3
add esp, 4
cmp esi, dword [esp + 0x1c]
jne 0x100274a0
mov eax, dword [esp + 0x10]
sub ebx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, ebx
jge 0x1002752f
push 0
lea ecx, [esp + 0x14]
call fcn.100042c0
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x68], 8
lea ecx, [esp + 0x54]
push eax
cmovae ecx, dword [esp + 0x58]
push ecx
push str.login
push 0x10063268
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x68], 8
mov bl, 1
jb 0x10027564
push dword [esp + 0x54]
call fcn.100359a3
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
test ecx, ecx
je 0x100275f6
push dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push ecx
call fcn.10027ec0
push dword [esp + 0x20]
call fcn.100359a3
add esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jmp 0x100275f6
mov eax, dword [esp + 0x10]
sub ebx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, ebx
jge 0x100275d4
push 0
lea ecx, [esp + 0x14]
call fcn.100042c0
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x50], 8
lea ecx, [esp + 0x3c]
push eax
cmovae ecx, dword [esp + 0x40]
push ecx
push str.login
push 0x10063268
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov bl, 1
cmp dword [esp + 0x80], 8
jb 0x1002760c
push dword [esp + 0x6c]
call fcn.100359a3
add esp, 4
mov byte [esp + 0x10c0], 2
xor eax, eax
mov edx, dword [esp + 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov word [esp + 0x6c], ax
mov dword [esp + 0x80], 7
mov eax, esi
mov dword [esp + 0x7c], 0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1002764e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x50], 8
jb 0x10027661
push dword [esp + 0x3c]
call fcn.100359a3
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
add edi, 0xfffffff0
mov word [esp + 0x3c], ax
mov byte [esp + 0x10c0], al
mov dword [esp + 0x4c], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10027696
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0xa8], 8
jb 0x100276af
push dword [esp + 0x94]
call fcn.100359a3
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x10b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10a0]
xor ecx, esp
call fcn.100359a8
mov esp, ebp
pop ebp
ret 8