Function at 0x4022d0
Capabilities:
Delete file
Enumerate pe sections
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x98
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 0x4024c9
cmp dword [ebp + 0x24], 1
jle 0x4024c9
cmp dword [ebp + 0x1448], 0x65
jne 0x4024c9
mov esi, dword [esp + 0xac]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
xor edx, edx
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], edx
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
call edi
mov ebx, eax
mov al, byte [esi + 0x1e]
add esp, 4
cmp al, 1
jne 0x4024d6
mov edx, dword [ebp + 0x24]
dec edx
cmp ebx, edx
jne 0x4023f3
lea edi, [ebp + 0x4238]
mov ecx, ebp
push edi
call fcn.004057a0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x20
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x1448], eax
mov dword [ebp + 0x4210], eax
mov dword [ebp + 0x4214], eax
mov eax, dword [ebp + 0x4224]
inc eax
mov dword [ebp + 0x4218], 1
mov dword [ebp + 0x4224], eax
mov ebp, eax
xor eax, eax
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
push 0x40d468
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x40e438]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0x3ef
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
lea eax, [ebx + 1]
xor ecx, ecx
mov edx, eax
mov dword [esp + 0x10], ecx
shl edx, 6
sub edx, eax
mov dword [esp + 0x14], ecx
lea esi, [eax + edx*8]
mov eax, dword [ebp + 0x41f8]
lea esi, [esi + esi*2]
shl esi, 1
lea ecx, [esi + eax + 0xd]
mov edx, dword [esi + eax + 0xd]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov ax, word [ecx + 4]
push edx
mov word [esp + 0x18], ax
mov cl, byte [ecx + 6]
mov byte [esp + 0x1a], cl
call edi
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 edi, dword [ebp + 0x41f8]
mov ecx, edx
mov eax, ecx
add esi, edi
lea edi, [ebp + 0xc0]
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0xc0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xb0]
push ecx
push edx
mov edx, dword [0x40e438]
push eax
lea ecx, [edx + 0x60]
call fcn.004099a0
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0x28]
push eax
lea eax, [ebx + 1]
push eax
push str.MGR_PC:_Send_VOL_PackNo:__d__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push 0x65
push 2
mov ecx, ebp
mov dword [ebp + 0x1448], 0x65
call fcn.00405670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
cmp al, 3
jne 0x4025ad
mov eax, dword [esp + 0xb0]
mov ecx, ebp
push eax
call fcn.00404ce0
test eax, eax
je 0x4024c9
mov edx, ebx
mov eax, dword [ebp + 0x41f8]
shl edx, 6
sub edx, ebx
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea esi, [ebx + edx*8]
mov dword [esp + 0x14], ecx
lea esi, [esi + esi*2]
shl esi, 1
lea ecx, [esi + eax + 0xd]
mov edx, dword [esi + eax + 0xd]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov ax, word [ecx + 4]
push edx
mov word [esp + 0x18], ax
mov cl, byte [ecx + 6]
mov byte [esp + 0x1a], cl
call edi
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 edi, dword [ebp + 0x41f8]
mov ecx, edx
mov eax, ecx
add esi, edi
lea edi, [ebp + 0xc0]
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0xc0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xb0]
push ecx
push edx
mov edx, dword [0x40e438]
push eax
lea ecx, [edx + 0x60]
call fcn.004099a0
push ebx
lea eax, [esp + 0x2c]
push str.MGR_PC:_VOL_ERROR_RESEND_PackNo:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.00405820
jmp 0x4024b3
cmp al, 4
jne 0x4024b3
mov edx, dword [esp + 0xb0]
mov ecx, ebp
push edx
mov dword [ebp + 0x30], 3
call fcn.00404ce0
lea eax, [ebp + 0x4238]
lea ecx, [esp + 0x28]
push eax
push str.MGR_PC:_VOL_ERROR_FILE_File:_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x28]
mov ecx, ebp
push edx
call fcn.00405820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8