Function at 0x41fcb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x7f34
call fcn.0044e2b0
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x7f30], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov ebx, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x292]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], eax
mov word [esp + 0x294], cx
call fcn.004416b0
add esp, 0xc
push 0x88
lea eax, [esp + 0x494]
push 0
push eax
call fcn.004416b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0x1c], 0
cmp eax, 0xf
jne 0x41fd65
mov ecx, dword [ebp + 8]
push ecx
push str.Server_AFA_OK_Cookie__d_n
call fcn.00404c20
mov edx, dword [esp + 0x28]
mov byte [edi], 1
add esp, 8
mov dword [edx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f30]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x38
jne 0x42017d
xor eax, eax
push 0x21c
push eax
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x6c], 0
call fcn.004416b0
add esp, 0xc
push 0x77ff
xor edi, edi
lea ecx, [esp + 0x51d]
push edi
push ecx
mov byte [esp + 0x524], 0
call fcn.004416b0
add esp, 0xc
mov dword [esp + 0x2c], edi
cmp esi, edi
je 0x42017d
mov edx, dword [esi + 0x224]
push edx
push str.GetDataFromClient_AFA__d_n
call fcn.00404c20
mov eax, dword [esi + 0x224]
add esp, 8
cmp eax, 4
jne 0x41fea1
push edi
push 0x80
push 3
push edi
push 1
push bind
lea eax, [ebx + 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41fe85
push edi
lea ecx, [esp + 0x20]
push ecx
push 0x290
lea edx, [esp + 0x294]
push edx
mov dword [esp + 0x2c], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call edi
test eax, eax
je 0x41fe7e
lea esp, [esp]
cmp dword [esp + 0x1c], 0x290
jb 0x41fe7e
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x51c]
push edx
mov edx, dword [ebp + 8]
push 0x290
lea ecx, [esp + 0x294]
push ecx
push 0x3a
push edx
mov ecx, ebx
call eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x290
lea edx, [esp + 0x294]
push edx
push esi
call edi
test eax, eax
jne 0x41fe30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f30]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 1
jne 0x41fff1
push str.SEND_DATA_FROM_MANAGER_CLIENT_GetDataFromAFAServer_n
call fcn.00404c20
mov eax, dword [ebx + 0xcd4]
add esp, 4
cmp eax, edi
jne 0x41fec7
mov dword [esp + 0x14], edi
jmp 0x41fed1
mov eax, dword [eax + 0x4e8]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jle 0x41ffd5
xor esi, esi
mov dword [esp + 0x18], esi
jmp 0x41fef0
push 0x21a
lea edx, [esp + 0x7d1e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x7d24], cx
call fcn.004416b0
mov eax, dword [ebx + 0xcd4]
add esp, 0xc
cmp eax, edi
je 0x41ffb7
lea esi, [esi + eax + 0x4f0]
cmp esi, edi
je 0x41ffb7
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x7d18]
mov ecx, ebx
call fcn.004201a0
mov eax, edi
push eax
lea ecx, [esp + 0x7e]
push 0x105
push ecx
call fcn.0043efc3
mov dl, byte [esi + 0xd]
mov byte [esp + 0x6c], dl
mov al, byte [esi + 0x18]
mov byte [esp + 0x74], al
mov ecx, dword [esi + 0x19]
mov dword [esp + 0x75], ecx
mov edx, dword [esi + 0x1d]
mov dword [esp + 0x79], edx
mov eax, dword [esi + 0x21]
mov edx, dword [ebx]
mov edx, dword [edx + 0x18]
add esp, 0xc
mov dword [esp + 0x71], eax
mov ecx, dword [esi + 0x25]
mov dword [esp + 0x75], ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x51c]
push ecx
mov ecx, dword [ebp + 8]
push 0x224
lea eax, [esp + 0x6c]
push eax
push 0x3a
push ecx
mov ecx, ebx
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov byte [eax], 1
mov dword [ecx], 1
xor edi, edi
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
inc eax
add esi, 0x2c
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
jl 0x41fef0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f30]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 3
je 0x41ffff
cmp eax, 2
jne 0x42017d
push str.SEND_DATA_FROM_MANAGER_CLIENT_ChangeDataToAFAServer_n
call fcn.00404c20
movzx edx, byte [esi + 8]
add esp, 4
lea eax, [esi + 0x1a]
push edx
push eax
push str.Path___ws___d__n
mov dword [esp + 0x30], eax
call fcn.00404c20
xor eax, eax
add esp, 0xc
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
cmp byte [esi + 8], al
jne 0x42005c
mov byte [esi + 8], al
mov dword [esp + 0x10], edi
lea edi, [ebx + 0xccc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov edi, edi
mov eax, dword [edi + 8]
test eax, eax
je 0x42007d
mov eax, dword [eax + 0x4e8]
cmp dword [esp + 0x10], eax
jge 0x420118
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x7d22]
push ecx
mov word [esp + 0x7d24], ax
call fcn.004416b0
mov eax, dword [edi + 8]
add esp, 0xc
test eax, eax
je 0x4200eb
mov edx, dword [esp + 0x14]
lea eax, [edx + eax + 0x4f0]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4200eb
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x7d18]
mov ecx, ebx
call fcn.004201a0
mov ecx, dword [esp + 0x24]
mov eax, edi
push eax
push ecx
call fcn.0043ec25
add esp, 8
test eax, eax
je 0x4200f9
mov edi, dword [esp + 0x18]
inc dword [esp + 0x10]
add dword [esp + 0x14], 0x2c
jmp 0x420070
movzx eax, byte [esi + 8]
mov edx, dword [esp + 0x30]
cmp byte [edx + 0x18], al
je 0x420150
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.00402760
jmp 0x420150
mov dl, byte [esi]
mov ecx, dword [esi + 9]
mov al, byte [esi + 8]
mov byte [esp + 0x41], dl
mov edx, dword [esi + 0xd]
mov dword [esp + 0x4d], ecx
mov ecx, dword [esi + 0x15]
mov dword [esp + 0x51], edx
mov edx, dword [esp + 0x24]
mov byte [esp + 0x4c], al
mov eax, dword [esi + 0x11]
push edx
mov dword [esp + 0x5d], ecx
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5d], eax
call fcn.00402280
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov byte [eax], 1
mov dword [ecx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f30]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0x7f3c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 0x18