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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44f276
push eax
mov eax, 0x1414
mov dword fs:[0], esp
call fcn.004473e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1430]
push edi
mov dword [esp + 0x18], ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44163a
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
push eax
lea eax, [esp + 0x428]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, ebx
je 0x44163a
lea ecx, [esp + 0x424]
lea ebp, [esp + 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x44163a
jmp 0x4413af
mov esi, dword [esp + 0x1434]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push eax
push 0x103
push edx
push 0x4d6e34
push str.path
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x1c]
push 0x104
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edx, dword [0x463290]
lea eax, [esp + 0x1c]
test eax, eax
mov dword [esp + 0x10], edx
je 0x44145e
lea ecx, [esp + 0x1c]
shr ecx, 0x10
jne 0x441426
xor eax, eax
lea edx, [esp + 0x1c]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.004050d0
jmp 0x44145e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x44145e
push esi
lea ecx, [esp + 0x14]
call fcn.00402e70
test eax, eax
je 0x44145e
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x142c], ebx
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x4414aa
lea ecx, [esp + 0x10]
call fcn.00402f00
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402e70
test eax, eax
je 0x4414aa
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], ebx
je 0x4415e8
mov eax, dword [0x463290]
cmp ebp, ebx
mov dword [esp + 0x14], eax
je 0x441596
mov ecx, ebp
shr ecx, 0x10
jne 0x441564
mov edi, ebp
lea edx, [esp + 0x224]
and edi, 0xffff
push 0x100
push edx
push edi
call fcn.00402e40
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x441518
lea edx, [esp + 0x224]
lea ecx, [esp + 0x14]
push edx
call fcn.00403090
jmp 0x441596
push 0x1ff
lea ecx, [esp + 0x18]
mov esi, 0x200
call fcn.00403130
cmp eax, ebx
je 0x441557
push esi
push eax
push edi
call fcn.00402e40
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x441557
add esi, 0x100
lea ecx, [esp + 0x14]
lea edx, [esi - 1]
push edx
call fcn.00403130
cmp eax, ebx
jne 0x44152f
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004031c0
jmp 0x441596
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x441596
push esi
lea ecx, [esp + 0x18]
call fcn.00402e70
test eax, eax
je 0x441596
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1434]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x1438], 1
call fcn.004421c0
mov eax, dword [esp + 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4415e8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4415e8
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
call esi
mov edx, dword [0x463294]
lea ebp, [ebp + eax*2 + 2]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x142c], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x44162f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x44162f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
push ebp
call esi
test eax, eax
jne 0x4413a8
mov ecx, dword [esp + 0x1424]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1420
ret 4