Function at 0x416b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x7aac
call fcn.0044e2b0
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x7aa8], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov word [esp + 0x2c], cx
call fcn.004416b0
add esp, 0xc
push 0x88
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.004416b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0xc], 0
cmp eax, 0xc
jne 0x416c1f
mov ecx, dword [ebp + 8]
push ecx
push str.Server_AK_OK_Cookie__d_n
call fcn.00404c20
mov edx, dword [esp + 0x18]
mov byte [ebx], 1
add esp, 8
mov dword [edx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7aa8]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x38
jne 0x416e5e
push 0x77ff
lea eax, [esp + 0x2b5]
push 0
push eax
mov byte [esp + 0x2bc], 0
call fcn.004416b0
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x416e5e
cmp dword [ebp + 0x14], 0x228
jne 0x416e5e
mov eax, dword [edi + 0x224]
cmp eax, 4
jne 0x416d21
push ebx
push 0x80
push 3
push ebx
push 1
push bind
lea ecx, [esi + 0xcd4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416d05
push ebx
lea edx, [esp + 0x10]
push edx
push 0x290
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call ebx
test eax, eax
je 0x416cfe
cmp dword [esp + 0xc], 0x290
jb 0x416cfe
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2b4]
push ecx
mov ecx, dword [ebp + 8]
push 0x290
lea eax, [esp + 0x2c]
push eax
push 0x3a
push ecx
mov ecx, esi
call edx
push 0
lea eax, [esp + 0x10]
push eax
push 0x290
lea ecx, [esp + 0x2c]
push ecx
push edi
call ebx
test eax, eax
jne 0x416cb6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7aa8]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 1
jne 0x416ded
push str.SEND_DATA_FROM_MANAGER_CLIENT_GetDataFromAkServer_n
call fcn.00404c20
add esp, 4
lea ebx, [esi + 0x1170]
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x1168]
sub edx, dword [esi + 0x1164]
xor edi, edi
test edx, 0xfffffffc
jle 0x416db9
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x1168]
sub eax, dword [esi + 0x1164]
sar eax, 2
cmp edi, eax
jb 0x416d79
call fcn.0043f37f
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x1164]
lea ecx, [esp + 0x2b4]
push ecx
mov ecx, dword [eax + edi*4]
push 0x224
push ecx
push 0x3a
push ebx
mov ecx, esi
call edx
mov eax, dword [esi + 0x1168]
sub eax, dword [esi + 0x1164]
inc edi
sar eax, 2
cmp edi, eax
jl 0x416d61
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [ecx], 1
mov dword [edx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7aa8]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 3
je 0x416df7
cmp eax, 2
jne 0x416e5e
push str.SEND_DATA_FROM_MANAGER_CLIENT_ChangeDataToAkServer_n
call fcn.00404c20
add esp, 4
lea ebx, [edi + 0x1a]
push ebx
push str.Path___ws_n
call fcn.00404c20
add esp, 8
cmp byte [edi + 8], 0
jne 0x416e1f
mov byte [edi + 8], 0
movzx eax, byte [edi + 8]
push eax
push edi
add edi, 9
push edi
push esi
mov eax, ebx
call fcn.00414d90
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [ecx], 1
mov dword [edx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7aa8]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0x7ab4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18