Function at 0x418c30
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
add esp, 0xc
push 0x77ff
lea ecx, [esp + 0x2b5]
push 0
push ecx
mov dword [esp + 0x18], 0
mov byte [esp + 0x2bc], 0
call fcn.004416b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0x18], 0
cmp eax, 0xb
jne 0x418d06
mov edx, dword [ebp + 8]
push edx
push str.Server_BC_OK_Cookie__d_n
call fcn.00404c20
mov eax, dword [esp + 0x18]
mov byte [ebx], 1
mov dword [eax], 1
add esp, 8
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 0x418f33
test edi, edi
je 0x418f33
mov ecx, dword [edi + 0x224]
push ecx
push str.GetDataFromClient_BC__d_n
call fcn.00404c20
mov eax, dword [edi + 0x224]
add esp, 8
cmp eax, 4
jne 0x418df1
push 0
push 0x80
push 3
push 0
push 1
push bind
lea edx, [esi + 0x898]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x418dce
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x290
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x418dce
cmp dword [esp + 0xc], 0x290
jb 0x418dce
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 0x418d86
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 0x418ebd
push str.SEND_DATA_FROM_MANAGER_CLIENT_GetDataFromBcServer_n
call fcn.00404c20
add esp, 4
lea ebx, [esi + 0xd68]
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0xd60]
sub edx, dword [esi + 0xd5c]
xor edi, edi
test edx, 0xfffffffc
jle 0x418e89
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xd60]
sub eax, dword [esi + 0xd5c]
sar eax, 2
cmp edi, eax
jb 0x418e49
call fcn.0043f37f
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0xd5c]
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 + 0xd60]
sub eax, dword [esi + 0xd5c]
inc edi
sar eax, 2
cmp edi, eax
jl 0x418e31
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 0x418ec7
cmp eax, 2
jne 0x418f33
push str.SEND_DATA_FROM_MANAGER_CLIENT_ChangeDataToBcServer_n
call fcn.00404c20
movzx eax, byte [edi + 8]
add esp, 4
push eax
lea ebx, [edi + 0x1a]
push ebx
push str.Path___ws___d__n
call fcn.00404c20
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x418ef4
mov byte [edi + 8], 0
movzx ecx, byte [edi + 8]
push ecx
push edi
add edi, 9
push edi
push esi
mov eax, ebx
call fcn.00417310
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov byte [edx], 1
mov dword [eax], 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