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

Disassembly:
push 0xffffffffffffffff
push 0x4e6a91
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x14]
push ecx
xor esi, esi
mov ecx, 0x4f05c4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
call fcn.00406bd0
mov dword [esp + 0x238], esi
cmp dword [0x51b39c], esi
jne 0x44051d
push 0x74
call fcn.004c99ad
add esp, 4
cmp eax, esi
je 0x440511
mov esi, eax
call fcn.0046b480
jmp 0x440513
xor eax, eax
mov dword [0x51b39c], eax
call fcn.0046bac0
mov eax, dword [0x51b39c]
lea esi, [esp + 0x20]
call fcn.0046bd80
mov bl, 1
mov byte [esp + 0x238], bl
mov ebp, dword [esp + 0x20]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4406bd
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x244]
push ecx
push 0x4f63f8
lea edi, [esp + 0x24]
mov byte [esp + 0x240], 2
call fcn.00406e20
push 0x208
lea edx, [esp + 0x30]
push 0
push edx
call fcn.004cc620
mov esi, dword [esp + 0x30]
add esp, 0x14
push ebp
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0x4f05c4
push esi
push str.Runed_AllBroadcast
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
ja 0x440646
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004065a0
mov edi, dword [esp + 0x18]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x238], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4405f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x238], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440614
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44063f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x440723
lea ecx, [esp + 0x24]
push 0x104
push ecx
call fcn.004ca0b4
add esp, 8
test eax, eax
jne 0x44068d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004065a0
mov edi, dword [esp + 0x18]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x238], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4405e4
lea edx, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00406b90
lea eax, [esi - 0x10]
mov byte [esp + 0x238], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4406bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004065a0
mov esi, dword [esp + 0x18]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x238], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4406f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440721
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004c961b
add esp, 0x228
ret 8