Function at 0x41c940
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bbec2
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
mov eax, dword [0x621d30]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
cmp eax, 1
jge 0x41c984
mov eax, str.Incorrect_command_line
call fcn.0041a990
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
lea ecx, [edi + 0x20]
push ecx
push eax
call fcn.0041a9e0
add esp, 8
test al, al
jne 0x41c9a4
mov eax, str.Incorrect_command_line
call fcn.0041a990
mov ecx, dword [ebx + 4]
mov dl, byte [ecx + 0x310]
mov byte [edi + 0x40], dl
mov eax, dword [ebx + 4]
mov cl, byte [eax + 0x364]
mov byte [edi + 0x41], cl
mov edx, dword [ebx + 4]
cmp byte [edx + 0x348], 0
je 0x41c9d8
cmp dword [edx + 0x360], 0
setl cl
mov byte [0x62d21c], cl
mov eax, edx
cmp byte [eax + 0x1f8], 0
je 0x41c9fc
mov eax, dword [eax + 0x210]
sub eax, 0
je 0x41c9f5
dec eax
je 0x41c9fc
xor esi, esi
jmp 0x41ca01
mov esi, 1
jmp 0x41ca01
mov esi, 2
push 0xffffffffffffffff
push 0x1b
mov edx, ebx
mov dword [esp + 0x1c], esi
call fcn.0041c1e0
push 0xfde9
push 0x1a
mov edx, ebx
mov dword [0x623ef4], eax
call fcn.0041c1e0
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
add esp, 0x10
cmp byte [eax + 0x134], 0
mov byte [esp + 0x20], 0
je 0x41ca5a
mov edx, dword [esp + 0x10]
push edx
push esi
push 1
add eax, 0x138
lea ecx, [edi + 0xc]
push eax
push ecx
mov byte [esp + 0x34], 1
call fcn.0041b040
add esp, 0x14
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0x150], 0
je 0x41ca81
mov edx, dword [esp + 0x10]
push edx
push esi
push 0
add ecx, 0x154
lea eax, [edi + 0xc]
push ecx
push eax
call fcn.0041b040
add esp, 0x14
mov eax, dword [ebx + 4]
cmp byte [eax + 0x1a4], 0
mov ecx, 1
mov dword [esp + 0x18], ecx
jne 0x41caa7
mov eax, dword [edi + 0x20]
cmp eax, 7
je 0x41caa7
mov byte [esp + 0xd], cl
cmp eax, 8
jne 0x41caac
mov byte [esp + 0xd], 0
mov eax, dword [edi + 0x20]
lea edx, [eax - 3]
cmp edx, 2
ja 0x41cb84
mov byte [esp + 0xf], cl
cmp byte [edi + 5], 0
mov byte [esp + 0xe], cl
je 0x41cb97
mov byte [esp + 0xd], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
lea eax, [ebx + 8]
lea esi, [edi + 0xc]
push eax
push esi
mov dword [esp + 0x30], esi
call fcn.0041ac30
mov ecx, dword [ebx + 4]
mov dl, byte [ecx + 0xa8]
mov byte [edi + 8], dl
mov eax, dword [ebx + 4]
mov al, byte [eax + 0xc4]
add esp, 0x14
mov byte [edi + 0x30], al
test al, al
je 0x41cb2d
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0xd4]
mov eax, dword [edx]
push eax
lea esi, [edi + 0x34]
call fcn.004064e0
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
mov cl, byte [eax + 0x2a0]
mov byte [edi + 9], cl
mov edx, dword [ebx + 4]
cmp byte [edx + 0x8c], 0
je 0x41cb5d
mov ecx, dword [edx + 0x9c]
mov eax, dword [ecx]
push eax
lea esi, [edi + 0x168]
call fcn.004064e0
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0xe], 0
je 0x41cd8b
cmp dword [esi + 8], 1
jne 0x41cb7a
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
xor ecx, ecx
cmp dword [eax + 4], ecx
je 0x41cbdd
mov eax, str.Cannot_use_absolute_pathnames_for_this_command
call fcn.0041a990
mov byte [esp + 0xf], 0
cmp eax, 6
je 0x41cabf
mov byte [esp + 0xe], 0
cmp byte [esp + 0xd], 0
je 0x41cad2
cmp dword [esp + 0x24], ecx
jg 0x41cbb2
mov eax, str.Incorrect_command_line
call fcn.0041a990
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 4]
lea esi, [edi + 0x24]
push eax
call fcn.004064e0
cmp dword [edi + 0x28], 0
mov dword [esp + 0x18], 2
jne 0x41cad2
mov eax, str.Incorrect_command_line
call fcn.0041a990
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 4
mov dword [esp + 0x40], vtable.CObjectVector_struct_NWildcard::CPair_.0
mov dword [esp + 0x60], ecx
mov eax, dword [ebx + 4]
cmp byte [eax + 0x16c], 0
je 0x41cc25
mov ecx, dword [esp + 0x10]
push ecx
push 2
push 1
add eax, 0x170
push eax
lea edx, [esp + 0x50]
push edx
call fcn.0041b040
add esp, 0x14
mov ebx, dword [ebx + 4]
cmp byte [ebx + 0x188], 0
je 0x41cc4e
mov eax, dword [esp + 0x10]
push eax
push 2
push 0
add ebx, 0x18c
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.0041b040
add esp, 0x14
cmp byte [esp + 0xd], 0
je 0x41cc67
push 0
lea eax, [edi + 0x24]
push eax
push 1
lea edx, [esp + 0x4c]
push edx
call fcn.004341e0
lea eax, [esp + 0x40]
push eax
call fcn.0041b5f0
add esp, 4
lea ebx, [esp + 0x40]
call fcn.004347b0
xor ebx, ebx
cmp byte [edi + 5], bl
je 0x41ccce
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x240]
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407160
lea edx, [esp + 0x28]
push edx
lea ecx, [edi + 0x54]
mov byte [esp + 0x64], 1
call fcn.0041d2f0
lea eax, [esp + 0x28]
push eax
lea ecx, [edi + 0x68]
call fcn.0041d2f0
mov byte [esp + 0x60], bl
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00489718
add esp, 4
jmp 0x41cce5
lea edx, [edi + 0x68]
push edx
lea eax, [edi + 0x54]
push eax
lea edx, [esp + 0x48]
call fcn.0041c340
mov esi, dword [ebp + 8]
add esp, 8
cmp byte [esp + 0xf], bl
je 0x41cd74
lea ecx, [edi + 0x7c]
push ecx
push esi
call fcn.0041bf70
add esp, 8
cmp byte [edi + 6], bl
je 0x41cd22
cmp byte [edi + 3], bl
je 0x41cd22
cmp byte [edi + 4], bl
je 0x41cd22
push 0x611100
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], str.I_wont_write_data_and_programs_messages_to_same_terminal
call fcn.00594281
mov eax, dword [esi + 4]
cmp byte [eax + 0xfc], bl
je 0x41cd48
mov eax, dword [eax + 0x10c]
mov eax, dword [eax]
lea esi, [edi + 0x44]
push eax
call fcn.004064e0
mov eax, esi
call fcn.0044c080
mov esi, dword [ebp + 8]
mov dword [edi + 0x50], ebx
mov esi, dword [esi + 4]
cmp byte [esi + 0x268], bl
je 0x41cd68
mov ecx, dword [esi + 0x280]
mov edx, dword [ecx*4 + 0x623f00]
mov dword [edi + 0x50], edx
jmp 0x41cd74
cmp byte [edi + 8], bl
je 0x41cd74
mov dword [edi + 0x50], 1
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x64], 0xffffffff
call fcn.0041a900
jmp 0x41d096
mov eax, dword [edi + 0x20]
test eax, eax
je 0x41cda0
cmp eax, 1
je 0x41cda0
cmp eax, 2
jne 0x41cee8
lea esi, [edi + 0x90]
push esi
push ebx
push eax
mov dword [esp + 0x1c], esi
call fcn.0041bce0
add esp, 0xc
lea edx, [esi + 4]
push edx
push ebx
call fcn.0041bf70
mov eax, dword [ebx + 4]
add esp, 8
cmp byte [eax + 0x32c], 0
je 0x41cdd5
mov byte [esi + 0x98], 1
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0x70], 0
sete al
mov byte [edi + 0x174], al
test al, al
je 0x41ce07
mov al, byte [edi + 6]
test al, al
je 0x41cdfa
cmp byte [edi + 4], 0
je 0x41ce00
test al, al
jne 0x41ce07
cmp byte [edi + 3], 0
jne 0x41ce07
mov byte [edi + 0x174], 0
mov edx, dword [ebx + 4]
mov al, byte [edx + 0x284]
mov byte [esi + 0xa9], al
test al, al
je 0x41ce5b
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x294]
mov edx, dword [ecx]
add esi, 0xac
push edx
call fcn.004064e0
mov eax, dword [esp + 0x10]
cmp dword [eax + 0xb0], 0
jle 0x41ce5b
mov ecx, dword [esi]
cmp word [ecx], 0x2e
jne 0x41ce5b
mov edx, eax
mov eax, 1
xor ecx, ecx
mov byte [edx + 0xaa], 1
call fcn.0040dda0
movzx ecx, byte [edi + 6]
mov eax, dword [esp + 0x10]
mov byte [eax + 0xa8], cl
mov dl, byte [edi + 5]
mov byte [eax + 0x99], dl
test cl, cl
je 0x41ceb7
cmp byte [eax + 0xa9], 0
je 0x41ce96
push 0x611110
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], str.stdout_mode_and_email_mode_cannot_be_combined
call fcn.00594281
test cl, cl
je 0x41ceb7
cmp byte [edi + 3], 0
je 0x41ceb7
push 0x611100
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], str.I_wont_write_compressed_data_to_a_terminal
call fcn.00594281
test dl, dl
je 0x41ced6
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x240]
mov eax, dword [edx]
mov esi, dword [esp + 0x10]
push eax
add esi, 0x9c
call fcn.004064e0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041b5f0
add esp, 4
jmp 0x41d096
cmp eax, 7
jne 0x41d08d
mov edx, dword [esp + 0x24]
lea eax, [edi + 0x178]
mov dword [edi + 0x17c], 0xffffffff
mov dword [edi + 0x180], 0xffffffff
mov dword [eax], 1
cmp dword [esp + 0x18], edx
jge 0x41cf3e
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx + edx*4]
mov ecx, dword [ecx]
push eax
call fcn.0041c300
add esp, 4
test al, al
jne 0x41cf3e
mov eax, str.Incorrect_command_line
call fcn.0041a990
mov ebx, dword [ebx + 4]
xor esi, esi
mov dword [esp + 0x24], esi
cmp dword [ebx + 0xec], esi
jle 0x41d096
mov eax, dword [ebx + 0xf0]
mov eax, dword [eax + esi*4]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407160
mov dword [esp + 0x60], 2
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [esp + 0x2c], 2
jl 0x41c97a
movzx eax, word [ebx]
cmp eax, 0x44
jne 0x41cfd4
cmp word [ebx + 2], 0x3d
mov eax, 1
jne 0x41cf9d
mov eax, 2
lea ecx, [esp + 0x20]
push ecx
lea ecx, [ebx + eax*2]
call fcn.0041c300
add esp, 4
test al, al
je 0x41c97a
mov ecx, dword [esp + 0x20]
cmp ecx, 0x1f
ja 0x41c97a
mov edx, 1
shl edx, cl
mov dword [edi + 0x180], edx
jmp 0x41d063
cmp eax, 0x4d
jne 0x41c97a
movzx eax, word [ebx + 2]
cmp eax, 0x54
jne 0x41d01a
cmp word [ebx + 4], 0x3d
mov eax, 2
jne 0x41cff7
mov eax, 3
cmp word [ebx + eax*2], 0
lea ecx, [ebx + eax*2]
je 0x41d063
lea eax, [edi + 0x17c]
push eax
call fcn.0041c300
add esp, 4
test al, al
je 0x41c97a
jmp 0x41d063
cmp eax, 0x3d
jne 0x41c97a
cmp word [ebx + 4], 0
je 0x41d063
mov eax, 2
lea esi, [esp + 0x34]
lea edx, [esp + 0x28]
call fcn.00419a10
push eax
lea esi, [edi + 0x184]
mov byte [esp + 0x64], 3
call fcn.004064e0
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x34]
push eax
call fcn.00489718
mov esi, dword [esp + 0x28]
add esp, 4
push ebx
mov dword [esp + 0x64], 0xffffffff
call fcn.00489718
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 4]
inc esi
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, dword [ebx + 0xec]
jl 0x41cf53
jmp 0x41d096
cmp eax, 8
jne 0x41c97a
mov ebx, dword [esp + 0x1c]
call fcn.004347b0
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4