Function at 0x1002fc00
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x2138
call fcn.1004dd60
mov eax, dword [0x100a249c]
xor eax, esp
mov dword [esp + 0x2134], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x400
mov dword [esp + 0x30], eax
mov edi, ecx
lea eax, [esp + 0x13c]
mov dword [esp + 0x1c], edi
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x60], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x50]
movaps xmmword [esp + 0x50], xmm0
call fcn.1003b200
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xdd
push str.ComConnect::ReadFileFromClient
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x14c]
push str._s_t__d__d___INFO____s:_d__start_Com_ReadFileFromClients_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x154]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fca0
sub ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
call fcn.1003b350
add esp, 8
cmp dword [edi + 0x80], 0xffffffff
jne 0x1002fd62
push 0x400
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x60], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x50]
movaps xmmword [esp + 0x50], xmm0
call fcn.1003b200
push 0xdf
push str.ComConnect::ReadFileFromClient
call esi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x14c]
push str._s_t__d__d___ERROR____s:_d__ReadFileFromClient_mHandle_INVALID_HANDLE_VALUE_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x154]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fd30
lea eax, [esp + 0x138]
sub ecx, edx
push ecx
push eax
call fcn.1003b350
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2134]
xor ecx, esp
call fcn.1004ce09
mov esp, ebp
pop ebp
ret 4
xorps xmm0, xmm0
mov dword [esp + 0xa8], 0
movaps xmmword [esp + 0x90], xmm0
xor esi, esi
movq qword [esp + 0xa0], xmm0
mov word [esp + 0xac], 0
mov byte [esp + 0xae], 0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi]
lea ecx, [esp + 0x90]
push 0x1e
push ecx
mov ecx, edi
call dword [eax + 0xc]
lea eax, [esp + 0x90]
push str.00000
push eax
call fcn.1004f9e0
add esp, 8
test eax, eax
jne 0x1002fde3
mov eax, dword [edi]
mov ecx, edi
push str.00SizeErr0
call dword [eax + 4]
inc esi
cmp esi, 0x14
jl 0x1002fd95
xor esi, esi
jmp 0x1002ff1f
push 0xa
lea eax, [esp + 0x94]
mov word [esp + 0x5c], 0
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x62], 0
xorps xmm0, xmm0
push 0xb
push eax
movq qword [esp + 0x60], xmm0
call fcn.1005d758
lea eax, [esp + 0x60]
push eax
call fcn.1005e724
add esp, 0x14
mov dword [esp + 0x40], 0
mov esi, eax
mov byte [esp + 0x44], 0
lea eax, [esp + 0x9a]
mov dword [esp + 0x10], esi
xorps xmm0, xmm0
push 0x14
push eax
lea eax, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
push 0x15
push eax
call fcn.1005d758
push 0xa
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10063f67
add esp, 0x1c
mov dword [esp + 0x20], eax
lea eax, [esp + 0x138]
push 0x400
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
call fcn.1003b200
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push esi
lea eax, [esp + 0x9c]
push eax
push 0xd1
push str.ReadDataSize
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x15c]
push str._s_t__d__d___INFO____s:_d__read_len_is____s__parseInt_is___d__crcStr___s__crc___lu_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x164]
add esp, 0x2c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fef0
sub ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
call fcn.1003b350
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push str.00SizeOk00
call dword [eax + 4]
cmp esi, 1
jge 0x1002ff9e
push 0x400
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
call fcn.1003b200
push esi
push 0xe7
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x150]
push str._s_t__d__d___ERROR____s:_d__ReadDataSize___d_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x158]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ff92
jmp 0x1002fd37
push esi
call fcn.1005d69a
add esp, 4
mov dword [esp + 0x14], eax
push esi
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x24], 0
nop
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10095ac0
push str.cncomm
call fcn.1004f9e0
add esp, 8
test eax, eax
je 0x10030152
cmp dword [esp + 0x14], 0
je 0x10030040
mov esi, dword [edi + 0x80]
test esi, esi
je 0x10030040
push dword [esp + 0x10]
call fcn.1004007d
add esp, 4
mov dword [esp + 0x1c], 0
mov edi, eax
push dword [esp + 0x10]
push 0
push edi
call fcn.10050780
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push eax
push dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100300d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x18]
or esi, 0xffffffff
push 0x400
lea eax, [esp + 0x13c]
mov dword [0x100a7098], esi
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
call fcn.1003b200
push dword [0x100a7098]
push 0xf4
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x150]
push str._s_t__d__d___INFO____s:_d__310_ReadSerialDataLen_with_g_recvSize__d__n
push eax
call fcn.10007a20
lea ecx, [esp + 0x158]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100300c1
lea eax, [esp + 0x138]
jmp 0x100302ee
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10030149
mov eax, dword [esp + 0x10]
test edi, edi
je 0x100300ff
cmp eax, esi
jb 0x100300ff
push esi
push edi
push dword [esp + 0x1c]
call fcn.10050200
mov edi, dword [esp + 0x24]
add esp, 0xc
jmp 0x10030043
push eax
push 0
push dword [esp + 0x1c]
call fcn.10050780
add esp, 0xc
test edi, edi
jne 0x1003012f
call fcn.1005997c
mov dword [eax], 0x16
call fcn.1005d92a
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x10030043
cmp dword [esp + 0x10], esi
jae 0x10030149
call fcn.1005997c
mov dword [eax], 0x22
call fcn.1005d92a
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x10030043
push str.pcomm
push str.cncomm
call fcn.1004f9e0
add esp, 8
test eax, eax
je 0x100301fc
push 0x400
lea eax, [esp + 0x93c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x60], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x50]
movaps xmmword [esp + 0x50], xmm0
call fcn.1003b200
push dword [0x100a7098]
push 0xf7
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x950]
push str._s_t__d__d___INFO____s:_d__PComm_sio_FtASCIIRx_with_g_recvSize__d__n
push eax
call fcn.10007a20
lea ecx, [esp + 0x958]
add esp, 0x20
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100301e0
sub ecx, edx
lea eax, [esp + 0x938]
push ecx
push eax
call fcn.1003b350
jmp 0x100302fb
mov ecx, dword [edi + 0x84]
test byte [ecx + 4], 4
je 0x1003024b
lea esi, [ecx + 0xdc]
test esi, esi
je 0x1003023a
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x10]
mov ecx, esi
push dword [esp + 0x18]
call fcn.1002d440
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x18]
jmp 0x10030258
push dword [esp + 0x10]
mov ecx, esi
push dword [esp + 0x18]
call fcn.1002d440
jmp 0x10030256
push ecx
push esi
push dword [esp + 0x1c]
call fcn.1002cd10
mov esi, eax
push 0x400
lea eax, [esp + 0xd3c]
mov dword [0x100a7098], esi
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0xc0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xb0]
movaps xmmword [esp + 0xb0], xmm0
call fcn.1003b200
push dword [0x100a7098]
push 0xfa
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xd50]
push str._s_t__d__d___INFO____s:_d__CnComm_g_com__Read_with_g_recvSize__d__n
push eax
call fcn.10007a20
lea ecx, [esp + 0xd58]
add esp, 0x20
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100302e0
lea eax, [esp + 0xd38]
sub ecx, edx
push ecx
push eax
call fcn.1003b350
mov esi, dword [esp + 0x18]
add esp, 8
cmp dword [0x100a7098], esi
je 0x100303be
push 0x400
lea eax, [esp + 0x113c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0xe0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xd0]
movaps xmmword [esp + 0xd0], xmm0
call fcn.1003b200
push dword [0x100a7098]
push 0xff
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x1150]
push str._s_t__d__d___ERROR____s:_d__after_read_file_with_size__d_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x1158]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030388
sub ecx, edx
lea eax, [esp + 0x1138]
push ecx
push eax
call fcn.1003b350
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push str.00DataErr0
call dword [eax + 4]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100306f9
push 0x10095ac0
push str.cncomm
call fcn.1004f9e0
add esp, 8
test eax, eax
jne 0x10030584
push str.pcomm
push str.cncomm
call fcn.1004f9e0
add esp, 8
test eax, eax
je 0x10030584
mov esi, dword [0x100a7098]
push 0x100974cc
push str.getConfigSaved.xml
call fcn.1005e809
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x100304b1
push 0x400
push eax
lea eax, [esp + 0x1540]
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x100], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xf0]
movaps xmmword [esp + 0xf0], xmm0
call fcn.1003b200
push 0x165
push 0x10098338
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x154c]
push str._s_t__d__d___ERROR____s:_d__File:_Can_Not_Open_To_Read__n
push eax
call fcn.10007a20
lea ecx, [esp + 0x1554]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030490
sub ecx, edx
lea eax, [esp + 0x1538]
push ecx
push eax
call fcn.1003b350
add esp, 8
xor edi, edi
jmp 0x10030588
push esi
call fcn.1005d69a
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10050780
add esp, 0xc
push dword [esp + 0x28]
push esi
push 1
push edi
call fcn.10065a0a
add esp, 0x10
cmp eax, esi
jae 0x10030576
push 0x400
lea eax, [esp + 0x193c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x120], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x110]
movaps xmmword [esp + 0x110], xmm0
call fcn.1003b200
push 0x16c
push 0x10098338
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x194c]
push str._s_t__d__d___ERROR____s:_d__File:__Read_Failed_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x1954]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030558
sub ecx, edx
lea eax, [esp + 0x1938]
push ecx
push eax
call fcn.1003b350
add esp, 8
xor edi, edi
jmp 0x10030588
push dword [esp + 0x28]
call fcn.1005e9d8
add esp, 4
jmp 0x10030588
mov edi, dword [esp + 0x14]
mov edx, dword [0x100a7098]
or esi, 0xffffffff
xor ecx, ecx
test edx, edx
je 0x100305af
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x1008d380]
cmp ecx, edx
jb 0x10030597
push 0x400
lea eax, [esp + 0x1d3c]
not esi
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0xa0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x90]
movaps xmmword [esp + 0x90], xmm0
call fcn.1003b200
push esi
push dword [esp + 0x24]
push 0x110
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x1d54]
push str._s_t__d__d___INFO____s:_d__sendCrc___lu__recvCrc___lu_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x1d5c]
add esp, 0x24
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030630
sub ecx, edx
lea eax, [esp + 0x1d38]
push ecx
push eax
call fcn.1003b350
add esp, 8
lea eax, [esp + 0x538]
push 0x400
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.1003b200
cmp esi, dword [esp + 0x20]
je 0x1003078a
push 0x112
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54c]
push str._s_t__d__d___ERROR____s:_d__CRC_check_error__retry..._n
push eax
call fcn.10007a20
lea ecx, [esp + 0x554]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100306c0
sub ecx, edx
lea eax, [esp + 0x538]
push ecx
push eax
call fcn.1003b350
mov edi, dword [esp + 0x20]
add esp, 8
mov ecx, edi
mov eax, dword [edi]
push str.00DataErr0
call dword [eax + 4]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 0x14
jl 0x1002ffc0
push 0x400
lea eax, [esp + 0x53c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.1003b200
push 0x120
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54c]
push str._s_t__d__d___ERROR____s:_d__read_file_ERROR___n
push eax
call fcn.10007a20
lea ecx, [esp + 0x554]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030777
lea eax, [esp + 0x538]
jmp 0x1002fd3e
push 0x119
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54c]
push str._s_t__d__d___INFO____s:_d__read_config_data_ok_n
push eax
call fcn.10007a20
lea edx, [esp + 0x554]
add esp, 0x1c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100307c6
sub edx, ecx
lea eax, [esp + 0x538]
push edx
push eax
call fcn.1003b350
mov ecx, dword [esp + 0x20]
add esp, 8
mov eax, dword [ecx]
push str.00DataOk00
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x213c]
mov dword [eax], edi
mov eax, dword [0x100a7098]
pop edi
pop esi
xor ecx, esp
call fcn.1004ce09
mov esp, ebp
pop ebp
ret 4