Function at 0x463d70
Capabilities:
Check if file exists
Get file size
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58c592
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, 0x5fe674
mov dword [esp + 0x34], vtable.CAutoRWLock.0
mov dword [esp + 0x38], esi
mov byte [esp + 0x3c], 1
call fcn.00403d40
xor ebx, ebx
mov dword [esp + 0x180], ebx
call fcn.00464680
test byte [0x604de8], 1
jne 0x463e0f
or dword [0x604de8], 1
mov byte [esp + 0x180], 1
push 0x604de4
mov ecx, 0x5d2b98
call fcn.00402fe0
push 0x591050
call fcn.004a444f
add esp, 4
mov byte [esp + 0x180], bl
mov eax, dword [0x604de4]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x463f74
mov edi, 0x5d2d34
lea esi, [esp + 0x14]
call fcn.004065f0
mov byte [esp + 0x180], 2
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
call esi
test eax, eax
jne 0x463e57
mov byte [esp + 0x180], bl
lea edx, [esp + 0x14]
push edx
jmp 0x463f6f
push 0x103
lea eax, [esp + 0x71]
push ebx
push eax
mov byte [esp + 0x78], bl
call fcn.004add60
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push 0x103
lea edx, [esp + 0x74]
push edx
push 0x5d2b98
push str.datapath
push str.server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x463ea0
sub eax, edx
je 0x463f63
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
je 0x463f63
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x463ec5
sub eax, edx
lea ecx, [esp + 0x6c]
mov edi, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004033b0
push 0x104
lea edx, [esp + 0x70]
push ebx
push edx
call fcn.004add60
mov eax, dword [esp + 0x20]
add esp, 0xc
push str.Push
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
cmp eax, ebx
jne 0x463f18
mov byte [esp + 0x180], bl
lea edx, [esp + 0x14]
push edx
jmp 0x463f6f
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x463f20
sub eax, edx
lea ecx, [esp + 0x6c]
mov edi, eax
push ecx
mov eax, 0x604de4
call fcn.004033b0
mov byte [esp + 0x180], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x463f74
mov byte [esp + 0x180], bl
lea ecx, [esp + 0x14]
push ecx
call fcn.00403090
mov ecx, dword [0x604de4]
lea edx, [esp + 0x18]
push edx
call fcn.00402fe0
mov byte [esp + 0x180], 5
lea esi, [esp + 0x18]
call fcn.00464600
mov ebp, 0x8000
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x180], 7
mov eax, dword [esp + 0x18]
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x464026
call fcn.00450a30
cmp eax, ebx
jl 0x464003
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x463ff9
call fcn.00450a30
cmp eax, ebx
jl 0x464003
mov eax, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
lea esi, [ebp + 0x10]
cmp esi, ebx
je 0x46402c
push esi
call fcn.004a1f7a
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x46402c
push esi
push ebx
push edi
call fcn.004add60
add esp, 0xc
jmp 0x46402e
mov dword [esp + 0x20], eax
jmp 0x463fd3
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov byte [esp + 0x180], 8
cmp edi, ebx
jne 0x46409f
mov byte [esp + 0x180], 7
push ebx
call fcn.004a4f88
add esp, 4
mov byte [esp + 0x180], 5
lea ecx, [esp + 0x20]
push ecx
call fcn.0044fe40
mov byte [esp + 0x180], bl
lea edx, [esp + 0x18]
push edx
call fcn.00403090
mov dword [esp + 0x180], 0xffffffff
push 0x5fe67c
mov dword [esp + 0x38], vtable.CAutoRWLock.0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x5fe698]
push eax
jmp 0x46421e
push esi
push ebx
push edi
mov dword [esp + 0x20], edi
call fcn.004add60
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push ebp
push edi
push str.Task
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x34], 0x2c3b3d
call fcn.004030f0
mov byte [esp + 0x180], 0xa
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4640e0
sub eax, edx
mov ebp, eax
cmp ebp, ebx
je 0x4641b3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.004a4487
add esp, 8
cmp eax, ebx
je 0x464189
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.004a4487
add esp, 8
cmp eax, ebx
je 0x464189
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x464124
sub ecx, esi
push eax
mov edi, ecx
lea eax, [esp + 0x20]
call fcn.004033b0
lea ebx, [esp + 0x1c]
call fcn.00406560
mov edi, eax
call fcn.00406480
lea eax, [esp + 0x40]
push eax
call fcn.0040c600
mov byte [esp + 0x180], 0xb
mov ecx, ebx
push ecx
lea edi, [esp + 0x44]
call fcn.0040cdd0
mov eax, dword [esp + 0x1c]
mov edx, edi
push edx
call fcn.00464790
mov byte [esp + 0x180], 0xa
mov eax, edi
push eax
call fcn.0040c6d0
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + ebp + 1]
mov dword [esp + 0x14], eax
cmp byte [eax], bl
je 0x4641b3
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4641a0
sub eax, edx
mov ebp, eax
cmp ebp, ebx
jne 0x4640f3
mov byte [esp + 0x180], 8
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
mov byte [esp + 0x180], 7
push edi
call fcn.004a4f88
add esp, 4
mov byte [esp + 0x180], 5
lea eax, [esp + 0x20]
push eax
call fcn.0044fe40
mov byte [esp + 0x180], bl
lea ecx, [esp + 0x18]
push ecx
call fcn.00403090
mov dword [esp + 0x180], 0xffffffff
push 0x5fe67c
mov dword [esp + 0x38], vtable.CAutoRWLock.0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [0x5fe698]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x5fe680
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.004a314d
add esp, 0x170
ret