Function at 0x4043a0
Capabilities:
Print debug messages
Read file on windows

Disassembly:
mov eax, 0x494fc
call fcn.00409fe0
mov edx, dword [0x40e438]
push ebx
mov ebx, dword [esp + 0x49508]
push ebp
mov ebp, ecx
push esi
lea eax, [ebx + ebx*4]
push edi
lea ecx, [ebx + eax*2]
mov eax, dword [edx + 0x68]
shl ecx, 4
cmp byte [eax + ecx + 0xac], 1
jne 0x404804
cmp dword [ebp + 0x3c], 5
jle 0x4043e8
xor eax, eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x1448], eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x40d880
call esi
mov eax, dword [ebp + 0x1448]
cmp eax, 0x65
je 0x404801
cmp eax, 0x66
je 0x404801
cmp eax, 0x67
je 0x404801
cmp eax, 0x68
je 0x404801
cmp eax, 0x6c
je 0x404801
push 0x40d87c
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
mov esi, dword [esp + 0x49510]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x6c]
push ecx
push edx
push ebx
push esi
mov ecx, ebp
call fcn.00404ea0
test eax, eax
je 0x404804
cmp esi, 0x66
jne 0x404475
mov byte [esp + 0x1c], 0x34
jmp 0x40448f
cmp esi, 0x67
jne 0x404481
mov byte [esp + 0x1c], 0x35
jmp 0x40448f
cmp esi, 0x68
jne 0x404804
mov byte [esp + 0x1c], 0x36
lea eax, [esp + 0x6c]
push 0x40d7e0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x18], esi
je 0x404804
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xb0]
push str.MGR_PC:_Send_Image_File_:__s
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x124f8
xor eax, eax
lea edi, [esp + 0x12c]
push esi
rep stosd dword es:[edi], eax
push 0x493e0
lea ecx, [esp + 0x134]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x28]
mov esi, eax
push edx
mov dword [esp + 0x3c], esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [ebp + 4]
mov eax, esi
cdq
idiv edi
add esp, 0x14
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x28], ecx
jle 0x40453a
mov edx, ecx
mov eax, esi
imul edx, edi
mov edi, edx
cdq
idiv edi
test edx, edx
jle 0x40453a
inc ecx
mov dword [ebp + 0x28], ecx
mov edx, dword [ebp + 0x28]
push esi
inc edx
mov eax, edx
mov dword [ebp + 0x28], edx
push eax
lea eax, [esp + 0xb4]
push str.MGR_PC:_Send_Image_Total_Packet_:__d__d
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jl 0x40459f
push esi
push eax
lea edx, [esp + 0xb4]
push str.MGR_PC:_Send_Vehice_Image_Size_ERROR_:__d__d
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0xac]
mov ecx, ebp
push eax
call fcn.00405820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494fc
ret 8
mov ecx, dword [ebp + 0x20]
mov edi, dword [ebp + 4]
add ecx, edi
mov edi, dword [ebp + 0x41fc]
imul ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x49514]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x41fc]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.00404e20
push 0
lea eax, [esp + 0x14]
push str._04d
push eax
call ebx
mov ecx, dword [ebp + 0x41fc]
mov edx, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x20]
push str._07d
push eax
mov dword [ecx + 0x14], edx
call ebx
mov ecx, dword [ebp + 0x41fc]
mov edx, dword [esp + 0x28]
add ecx, 0x1e
lea edi, [esp + 0x44]
lea esi, [esp + 0x44]
mov dword [ecx], edx
mov ax, word [esp + 0x2c]
mov word [ecx + 4], ax
mov dl, byte [esp + 0x2e]
xor eax, eax
mov byte [ecx + 6], dl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 0x41fc]
not ecx
dec ecx
add edi, 0x25
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x41fc]
or ecx, 0xffffffff
add edi, 0x1e
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x28]
push edi
push str._07d
push ecx
mov dword [esp + 0x3c], edi
call ebx
mov edx, dword [ebp + 0x41fc]
mov eax, dword [esp + 0x34]
add esp, 0x24
add edx, 0xd
mov esi, 1
mov dword [edx], eax
mov cx, word [esp + 0x14]
mov dword [esp + 0x20], esi
mov word [edx + 4], cx
mov al, byte [esp + 0x16]
mov byte [edx + 6], al
cmp dword [ebp + 0x28], esi
jl 0x404794
mov edi, 0xbd6
mov dword [esp + 0x24], edi
jmp 0x4046b8
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x49514]
mov eax, dword [ebp + 0x41fc]
mov edx, dword [esp + 0x1c]
push ecx
add eax, edi
push edx
push eax
mov ecx, ebp
call fcn.00404e20
push esi
lea ecx, [esp + 0x14]
push str._04d
push ecx
call ebx
mov edx, dword [ebp + 0x41fc]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx + edi + 0x14], eax
mov ecx, dword [ebp + 0x28]
dec ecx
cmp esi, ecx
jne 0x40470f
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
cdq
idiv ecx
mov esi, edx
test esi, esi
jne 0x404712
mov esi, ecx
jmp 0x404712
mov esi, dword [ebp + 4]
push esi
lea edx, [esp + 0x14]
push str._07d
push edx
call ebx
mov eax, dword [ebp + 0x41fc]
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + edi + 0xd]
mov dword [eax + edi + 0xd], edx
mov ax, word [esp + 0x14]
mov word [ecx + 4], ax
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x16]
dec eax
mov byte [ecx + 6], dl
imul eax, dword [ebp + 4]
mov edx, dword [ebp + 0x41fc]
mov ecx, esi
lea esi, [esp + eax + 0x12c]
mov eax, ecx
lea edi, [edx + edi + 0x1e]
mov edx, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x28]
add edx, 0xbd6
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jle 0x4046b0
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x41fc]
add eax, edi
lea edx, [ebp + 0xc0]
mov ecx, eax
mov edi, edx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x49514]
push ecx
push eax
push edx
mov edx, dword [0x40e438]
lea ecx, [edx + 0x60]
call fcn.004099a0
mov eax, dword [esp + 0x49510]
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x1448], eax
mov eax, dword [esp + 0x1c]
and eax, 0xff
push ecx
push eax
push 2
mov ecx, ebp
call fcn.00405670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494fc
ret 8
inc dword [ebp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494fc
ret 8