Function at 0x402600
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x94
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [eax + eax*4]
push edi
lea edx, [eax + ecx*2]
mov eax, dword [0x40e438]
shl edx, 4
mov ecx, dword [eax + 0x68]
cmp byte [ecx + edx + 0xac], 1
jne 0x4028a7
cmp dword [ebp + 0x28], 1
jle 0x4028a7
mov edi, dword [esp + 0xb0]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
xor edx, edx
lea ecx, [esp + 0x1c]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x1c], edx
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call esi
mov ebx, eax
mov al, byte [edi + 0x1e]
add esp, 4
cmp al, 1
jne 0x402788
mov edx, dword [ebp + 0x28]
dec edx
cmp ebx, edx
jne 0x4026b5
xor eax, eax
push str.MGR_PC:_Send_Image_OK___
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x1448], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc
lea eax, [ebx + 1]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x10], edx
shl ecx, 6
sub ecx, eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x41fc]
lea eax, [eax + ecx*8]
lea eax, [eax + eax*2]
shl eax, 1
mov dword [esp + 0x18], eax
lea eax, [edx + eax + 0xd]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov dx, word [eax + 4]
push ecx
mov word [esp + 0x18], dx
mov al, byte [eax + 6]
mov byte [esp + 0x1a], al
call esi
mov edx, eax
mov eax, dword [ebp + 0x20]
add edx, eax
lea edi, [ebp + 0xc0]
mov ecx, 0x4e2
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x41fc]
mov edi, dword [esp + 0x1c]
mov ecx, edx
add esi, edi
mov eax, ecx
lea edi, [ebp + 0xc0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
lea eax, [ebp + 0xc0]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xac]
push ecx
push edx
mov edx, dword [0x40e438]
push eax
lea ecx, [edx + 0x60]
call fcn.004099a0
mov eax, dword [ebp + 0x28]
lea ecx, [esp + 0x24]
push eax
lea eax, [ebx + 1]
push eax
push str.MGR_PC:_Send_IMG_PackNo:__d__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
mov edi, dword [esp + 0xb0]
cmp byte [edi + 0x1e], 3
jne 0x402861
mov ecx, dword [ebp + 0x30]
inc ecx
mov eax, ecx
mov dword [ebp + 0x30], ecx
cmp eax, 3
jge 0x4028a7
mov ecx, ebx
xor eax, eax
shl ecx, 6
mov dword [esp + 0x10], eax
sub ecx, ebx
mov edx, dword [ebp + 0x41fc]
mov dword [esp + 0x14], eax
lea eax, [ebx + ecx*8]
lea eax, [eax + eax*2]
shl eax, 1
mov dword [esp + 0x18], eax
lea eax, [edx + eax + 0xd]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov dx, word [eax + 4]
push ecx
mov word [esp + 0x18], dx
mov al, byte [eax + 6]
mov byte [esp + 0x1a], al
call esi
mov edx, eax
mov eax, dword [ebp + 0x20]
add edx, eax
lea edi, [ebp + 0xc0]
mov ecx, 0x4e2
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x41fc]
mov edi, dword [esp + 0x1c]
mov ecx, edx
add esi, edi
mov eax, ecx
lea edi, [ebp + 0xc0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
lea eax, [ebp + 0xc0]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xac]
push ecx
push edx
mov edx, dword [0x40e438]
push eax
lea ecx, [edx + 0x60]
call fcn.004099a0
push ebx
lea eax, [esp + 0x28]
push str.MGR_PC:_Image_ERROR_RESEND__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.00405820
mov eax, dword [esp + 0xa8]
cmp al, 0x34
jne 0x402878
mov dword [ebp + 0x1448], 0x66
jmp 0x402896
cmp al, 0x35
jne 0x402888
mov dword [ebp + 0x1448], 0x67
jmp 0x402896
cmp al, 0x36
jne 0x4028a7
mov dword [ebp + 0x1448], 0x68
and eax, 0xff
push 0x63
push eax
push 2
mov ecx, ebp
call fcn.00405670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc